root password

Derek Broughton news at
Tue Aug 21 12:27:08 UTC 2007

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 :-)

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

More information about the ubuntu-users mailing list