×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Bash
Posted by: Paul Allies Allies
Added: Jul 5, 2012 10:23 PM
Views: 25
Tags: no tags
Here we:
1. Add a group
2. Delete a group
3. Add user to group
4. Remove user from group
5. Edit Group File
  1. //Add a group
  2. $ sudo groupadd <groupname>
  3.  
  4. //Delete a group
  5. $ sudo groupdel <groupname>
  6.  
  7. //Add user to a group
  8. $ sudo adduser <username> <groupname>
  9.  
  10. //Remove user from a group
  11. $ sudo deluser <username> <groupname>
  12.  
  13. //Edit group configuration file
  14. $ sudo vim /etc/group