Next | Prev | Up | Top | Contents | Index

Changing a User's Group

To change a user's group affiliation, perform these steps:

  1. Login as root.

  2. Edit the file /etc/group. Place the user's account name on the line corresponding to the desired group. If the account name appears as a member of another group, remove that reference unless you want the account to be a member of both groups.

  3. Write and exit the file /etc/group.

  4. Edit the file /etc/passwd.

  5. Find the user's entry in the file.

  6. Change the old group ID on that line to the new group ID. The group ID is the fourth field (after the account name, password, and user ID).

  7. Write and exit the file.
The user's group affiliation is now changed. Remind the user to change the group ownership on his or her files. If you prefer, you can perform this task yourself as root using the find(1) and chgrp(1) commands. See "Using find to Locate Files" for more information.


Next | Prev | Up | Top | Contents | Index