root password

Adam Funk a24061 at ducksburg.com
Tue Aug 21 19:09:40 UTC 2007


On 2007-08-21, Derek Broughton wrote:

> Adam Funk wrote:
>
>> On 2007-08-21, Paul Schulz wrote:
>> 
>>> The default install (server or otherwise) does not set a default root
>>> password. Login to the system as the user that was setup during the
>>> install, and use the following command to change to the root user:
>>>
>>>  > sudo su -i
>>>
>>> It will prompt for the user password.
>> 
>> What are the practical differences between `sudo -s` and `sudo su -i`?
>
> "sudo -s" works :-)

It's the only one of the two I've tried.

> More to the point, iirc, "su" runs the shell specified in /etc/passwd,
> whereas "sudo -s" runs the shell specified in the command line.

Looking at man su, I don't see a -i option --- was that a typo for -l
and is that what's so funny?





More information about the ubuntu-users mailing list