The
chgroup
command works just like chuser
, and its man page contains all the attributes you can change on a group. Listing provides an example of how to change the group's xangroup
GID from 203 to 204. Add a few users to the group, as well.Listing Change the group's GID and add users
# grep xangroup /etc/group
xangroup:!:203:
# chgroup id=204 users=xander,atc,amdc xangroup
# grep xangroup /etc/group
xangroup:!:204:xander,atc,amdc
|
No comments:
Post a Comment