adding user to group
Hi Guys,
How can I add a user to a group? Quote:
|
You can either use the userdrake program as root or the gpasswd command:
gpasswd -a user group |
Quote:
|
usermod userid -G group
|
usermod -G group
see man usermod For Red Hat I think it is redhat-config-users for the gui |
Quote:
Thanks |
Quote:
|
the command is actually
usermod -G groupname userid to check if the person is in the group you can do, cat /etc/group or cat /etc/group | more a list of groups and their corresponding users will be shown. There are probably other ways to do it, but I find this quite fast. |
Thanks for the quick reply I will try this on my box
|
If you perform id user_name, i think it'll list, at the end, all the groups the user belongs to. You can try that too.
|
All times are GMT -5. The time now is 02:06 PM. |