Re: OT: Pondering sudo



Magnus Therning <magnus@xxxxxxxxxxxx> 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


--
To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx
with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx



Relevant Pages

  • Re: OT: Pondering sudo
    ... 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 ... Use your password to authenticate to sudo, then change to the root user ...
    (Debian-User)
  • Sudo version 1.6.4 now available (fwd)
    ... Sudo version 1.6.4 is now available. ... o Visudo now checks for the existence of an editor and gives a sensible ... o Environment munging is now done by hand. ... to modify the builtin list of environment variables to remove. ...
    (Bugtraq)
  • Re: k3b is not able to detect dvd+rw-tools package
    ... >>Have you tried it as a non-root user? ... Only when I> use it through sudo, ... > >>I tried running k3b as root, using kdesu, and it worked fine for me. ... Check your environment variables after a sudo, ...
    (Debian-User)
  • Re: [HEADS UP]: OpenLDAP+nss_ldap+nss_modules separated patch andmore (SoC)
    ... comment about adding support for krb5_ccname in the config file. ... "should FreeBSD be able to authenticate against a ... environment which would be very keen on this. ... GSSAPI then you need a Kerberos infrastructure. ...
    (freebsd-current)
  • Re: sudo in terminal
    ... >>config file. ... Remember, "sudo" changes your UID, but does NOT give you the same ... environment, since the user's login scripts ... "-" makes it look like a login, so the login scripts are run). ...
    (Fedora)