Guest User

Untitled

a guest
Mar 18th, 2018
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. Create user
  2. Login as root
  3. $ sudo su -
  4. $ useradd -m <userName> -p <password>
  5.  
  6. Add to the group
  7. $ usermod -aG <someGroup> <userName>
  8.  
  9. For granting sudo or root access
  10. visudo
  11. For the group created
  12. <someGroup> ALL=(ALL) ALL
  13. $ su <userName> -
  14. $ groups
  15. <userName> <someGroup>
  16.  
  17. Just get confirmed
  18. $ sudo whoami
  19. ..[Password for <userName>]
  20.  
  21. U will see root. -- hence root permission also granted.
Add Comment
Please, Sign In to add comment