Skip to content

Instantly share code, notes, and snippets.

@owengriffin
Created January 21, 2011 20:54
Show Gist options
  • Save owengriffin/790400 to your computer and use it in GitHub Desktop.
Save owengriffin/790400 to your computer and use it in GitHub Desktop.
Debian "sudo" man
-i The -i (simulate initial login) option runs the shell specified in
the passwd(5) entry of the user that the command is being run as.
The command name argument given to the shell begins with a ‘-’ to
tell the shell to run as a login shell. sudo attempts to change to
that user’s home directory before running the shell. It also ini‐
tializes the environment, leaving TERM unchanged, setting HOME,
SHELL, USER, LOGNAME, and PATH, and unsetting all other environment
variables. Note that because the shell to use is determined before
the sudoers file is parsed, a runas_default setting in sudoers will
specify the user to run the shell as but will not affect which
shell is actually run.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment