General discussion


Group account ?

By theword ·
How do you remove one group from one user, and still have that one group active for other users?
Also. How do you change a group ID# or GID?

This conversation is currently closed to new comments.

Thread display: Collapse - | Expand +

All Comments

Collapse -

Group account ?

by cpfeiffe In reply to Group account ?

To delete a user from a group you can edit /etc/group and remove the username from the line end field of the line the group is identified on.

If it is the user's primary group you will have to go in the /etc/passwd file and change the primary group for that user. The primary group is identified as the number in the fourth field in the /etc/passwd file.

To change a group ID# simply edit the /etc/group file and change the number corresponding to the group. You will need to verify that no users in /etc/passwd listed this as their primary group. If they did you will have to change the primary group to the new group number.

Hope this is a clear enough explanation to accomplish your tasks.


Collapse -

Group account ?

by Shanghai Sam In reply to Group account ?

Yes that did help, but I thought there was a command that you could use to do this. Apparently not. I was thinking groupdel or groupadd, along that thought.
Thanks, and if you have any other suggestions, that would be helpful.

Collapse -

Group account ?

by theword In reply to Group account ?

This question was closed by the author

Related Discussions

Related Forums