Chown bob.project ProjX/ - changes ownership for group
Chgrp
Addgroup
Newgroup ProjectX -> changes current group
Than when you create directory , it owns by group ProjectX
gpasswd - A bob ProjectX --> Now bob is administrator of group ProjectX
gpasswd - a alice ProjectX --> Add alice to the group ProjectX
gpasswd - d alice ProjectX --> Del alice to the group ProjectX
chown oracle a.txt
ReplyDeletechown oracle:oinstall a -- userid and groupid
# usermod -G a usera
ReplyDeleteat /etc/group | grep user
a::102:usera