Securing Systems with Users, Groups,
and Permissions142
Managing groups and reviewing assignmentsWe have seen how to create a group with groupadd and delete it with groupdel. Let’s see how to modify a created group with groupmod.
Let’s create a group to work with. We will create the misspelled acounting group by running the following:
[root@rhel-instance
]# groupadd -g 1099 acounting[root@rhel-instance
]# tail -n /etc/groupacounting:x:1099:You see we made a mistake in the name by not spelling it accounting. We may even have added some user accounts to it and we need to modify it. We can do sousing groupmod and running the following:
Share with your friends: