Posted By

kayue on 11/13/10


Tagged


Versions (?)

User / Group Operations


 / Published in: Bash
 

  1. # Create group
  2. groupadd theGroup
  3.  
  4. # Add new user
  5. adduser theUser
  6.  
  7. # Change password
  8. passwd thePassword
  9.  
  10. # Find out user group identity
  11. id -nG theUser
  12.  
  13. # Add existing user to group
  14. usermod -G aGroup,bGroup theUser

Report this snippet  

You need to login to post a comment.