X

How to Add a UNIX User to a Group

If we take the user julian, and we want to add the user to a prexisting supplemental group, apache, then you can use the following command:

usermod -a -G apache julian

[ad#Google Adsense]

If you would like to change the primary group of user julian to the group prexisting group, apache, you can use the following command:

usermod -g apache julian

qpjson:
Disqus Comments Loading...