From: FBWNDR on
Hello,
I'm new to Linux, and I'm trying to find my way around the OS. The
system won't allow me to log in as SU because I don't have a password
for SU. Does anyone know the default password for SU?
From: J G Miller on
On Tue, 16 Feb 2010 06:24:59 -0800, FBWNDR wrote:

> Does anyone know the default password for SU?

Nobody knows, because you have not set one.

To set the password for root, you can just type

sudo passwd

then enter your own user's password and then, twice,
the chosen password for root.

Otherwise just do

sudo su -

to get a login shell as root.
From: FBWNDR on
On Feb 16, 7:36 am, J G Miller <mil...(a)yoyo.ORG> wrote:
> On Tue, 16 Feb 2010 06:24:59 -0800, FBWNDR wrote:
> > Does anyone know the default password for SU?
>
> Nobody knows, because you have not set one.
>
> To set the password for root, you can just type
>
>        sudo passwd
>
> then enter your own user's password and then, twice,
> the chosen password for root.
>
> Otherwise just do
>
>        sudo su -
>
> to get a login shell as root.

thanks
From: Teemu Likonen on
* 2010-02-16 15:36 (+0100), J. G. Miller wrote:

> Otherwise just do
>
> sudo su -
>
> to get a login shell as root.

"sudo -i" does very much the same and doesn't require root's password.
From: Rahul on
John Hasler <jhasler(a)newsguy.com> wrote in
news:87wrydxiwi.fsf(a)thumper.dhh.gt.org:

> Ubuntu configuration has no root password. However, you don't need it
> anyway. You can run commands as root by typing "sudo command" where
> "command" is the command you need to run as root and then responding
> with your own password. With this you can accomplish everything you
> could by logging in as root. Others have explained how to set a root
> password. Don't do it.
>

Is it inherently safer to run commands as sudo root than after su'ing to
root? Just curious. WHat's the reason not to set a root password?

--
Rahul