|
|
Sponsored Links
|
Maxabout.com > Tips
Groups - Add Groups And Users To Groups.Added on:8/27/2008 10:32:52 PM In Linux Tips Rated by 1 users
- The following shows how to create the group "share" and add the user "chirico" to this group. The following should be done as root, and assumes the account "chirico" already exits.
$ groupadd share $ usermod -G share chirico
- Note the change made to "/etc/group" below:
$ cat /etc/group|grep 'share' share:x:616:chirico
- If the user chirico is currently logged in, he should run the following command to immediately have group "share" rights. Or, the next time he logs in he will have access to this group.
$ newgrp share
|
Sponsored Links
Tools
Bookmark/Discuss
|
|
|