Advertisement
Guest User

Untitled

a guest
Jan 16th, 2017
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. sudo -i -u foo_user
  2.  
  3. foo_user@ubuntu:~$ sudo -i -u admin1
  4. [sudo] password for foo_user:
  5. foo_user is not in the sudoers file. This incident will be reported.
  6.  
  7. su admin1
  8. Password:
  9.  
  10. -i [command]
  11. The -i (simulate initial login) option runs the shell
  12. specified by the password database entry of the target user
  13. as a login shell.
  14.  
  15. su admin1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement