news at pointerstop.ca
Tue Aug 21 21:44:17 UTC 2007
Adam Funk wrote:
> On 2007-08-21, Derek Broughton wrote:
>> Adam Funk wrote:
>>> 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?
Precisely. Someone recommended the OP do "sudo su -i" - but that won't
work, because -i is a sudo option, not a su option.
"sudo -i" is the "proper" way to get a root login.
More information about the ubuntu-users