Previous Section  < Day Day Up >  Next Section

Recipe 8.15. Adding and Deleting Group Members

8.15.1 Problem

You need to give users some group memberships, or delete some users from groups.

8.15.2 Solution

Edit /etc/groups manually. Just copy and paste; it's the fastest way.

8.15.3 Discussion

You may also use adduser and usermod, but beware of sneaky gotchas: adduser will only add a user to one group at a time, but usermod, which allows you to list several groups at once, will overwrite any existing group assignments.

8.15.4 See Also

  • adduser(8), usermod(8)

    Previous Section  < Day Day Up >  Next Section