Page 1 of 1

Anyone know the default "su" & "sudo" password?

PostPosted: Tue May 20, 2014 10:53 pm
by slowboy
I've been trying some examples, but they ask for "su" password.
I guess what I need is the admin password. Thanks.

slowboy

Re: Anyone know the default "su" & "sudo" password?

PostPosted: Tue May 20, 2014 11:40 pm
by ronyoung1
Typically, on ubuntu/debian derived distributions, the root (admin) password is randomly generated.
They intend for you to use "sudo" to execute commands, something like (after you login to linaro):
In a terminal window:
sudo su

this will give you a root shell, you can use other commands, i.e.:

sudo reboot

If you want actually assign a new password to root, do something like:
(again from linaro command line)

sudo su
passwd
<<<enter new password for root>>>

Re: Anyone know the default "su" & "sudo" password?

PostPosted: Wed May 21, 2014 12:23 am
by hamster
I think it is "linaro" - not in front of my Parallella at the moment.

== Point for discussion ==
Real admins use root, and tread carefully. Only fools run as a non-priviledge user, and habitually prefix every command with "sudo".
======================

Well at least that is my view on small single-user systems where the worst that can happen is is that you need to reimage an SD card....

Re: Anyone know the default "su" & "sudo" password?

PostPosted: Wed May 21, 2014 3:55 am
by ronyoung1
not to beat a dead horse, but linaro is an ubuntu /debian derivitive.

things that you can do on a single user system is not necessarily good to do on a multi user system.
The original poster asked how to do something, I told them how to do what they
wanted and also told them why.

doing an "rm -rf ." as root in the wrong place can mess up your whole day. of course you shouldn't just blindly prefix a "sudo" to each command.

your line of reasoning of always running as root would not go down very well on my real machines (multiple clusters ranging from about 300 cores to over 20000 each). You limit the root commands to just what is essential. For example, instead of configuring/building/installing a package completely as root, I suggest it is safer to configure/build as a regular user then do a "sudo make install". The nice things about these small credit card machines is that if you want to do unsafe things, you can. If I don't want to, I don't have to...

Re: Anyone know the default "su" & "sudo" password?

PostPosted: Wed May 21, 2014 3:51 pm
by slowboy
Hi guys,
First, thanks Ron for the tip. It did the trick. Hamster, point well taken.
Second, I'm acquainted just enough with linux to be extra careful when using
root priveledges (sp?). But, as an experimenter and the actual owner of this
board I think it's a given that I be able to not be denied any action possible.
Linux makes it diffulcult to do the most basic things sometimes because of
denied permissions. I have no intention to live in root, but, sometimes it's just
easier.
Lastly, does anyone have a good recommendation for a straight forward
linux tutorial geared toward programmers. Preferable entirely online.

slowboy