Guest User

Untitled

a guest
Jan 31st, 2018
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. [user@localhost ~]$ su -
  2. Password:
  3. Last login: ...
  4. [root@localhost ~]# usermod -aG wheel user
  5. [root@localhost ~]# exit
  6. logout
  7. [user@localhost ~]$ sudo echo 123
  8. [sudo] password for user:
  9. user is not in the sudoers file. This incident will be reported.
  10.  
  11. ## Allows people in group wheel to run all commands
  12. # %wheel ALL=(ALL) ALL
  13.  
  14. ## Same thing without a password
  15. # %wheel ALL=(ALL) NOPASSWD: ALL
Add Comment
Please, Sign In to add comment