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

Comments

  1. chown oracle a.txt
    chown oracle:oinstall a -- userid and groupid

    ReplyDelete
  2. # usermod -G a usera

    at /etc/group | grep user
    a::102:usera

    ReplyDelete

Post a Comment

Popular posts from this blog

HAproxy logging

teamcity Automatic Agent Start under Linux

15 managing disk - understanding /etc/fstab xfs_admin mount -o rw,remount /