Guest User

Untitled

a guest
Jul 20th, 2018
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.80 KB | None | 0 0
  1.  
  2. -i The -i (simulate initial login) option runs the shell specified in
  3. the passwd(5) entry of the user that the command is being run as.
  4. The command name argument given to the shell begins with a β€˜-’ to
  5. tell the shell to run as a login shell. sudo attempts to change to
  6. that user’s home directory before running the shell. It also ini‐
  7. tializes the environment, leaving TERM unchanged, setting HOME,
  8. SHELL, USER, LOGNAME, and PATH, and unsetting all other environment
  9. variables. Note that because the shell to use is determined before
  10. the sudoers file is parsed, a runas_default setting in sudoers will
  11. specify the user to run the shell as but will not affect which
  12. shell is actually run.
Add Comment
Please, Sign In to add comment