[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: OT: Pondering sudo



Magnus Therning <magnus@therning.org> wrote:
> I've been trying to find out what the difference is between the
> following three

> % sudo su -

Use your password to authenticate to sudo, then use su to change to the
root user with root's environment as if it were a login session

> % sudo -i

Use your password to authenticate to sudo, then change to the root user
with root's environment as if it were a login session

> % sudo -s

Use your password to authenticate to sudo, then fire up a shell. Do not
instantiate root's environment. Do not start a new login session

Chris


Reply to: