Re: Permission question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On 10/05/11 1:01 PM, Victor Padro wrote:
> chmod -R owneruser:newuser1 /home/owneruserdir

chMOD changes the access modes, not the owner:group.  rather, you likely 
should have done...

     chgrp -R newuser1 /home/owneruserdir
     chmod -R g+rwx /home/owneruserdir

AND you likely want to set the group sticky bit so new files inherit the 
group

     find /home/owneruserdir -type d | xargs chmod g+s

also, you'll want to globally set

     umask 0002

so files get created group write by default.



-- 
john r pierce                            N 37, W 122
santa cruz ca                         mid-left coast

_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos


[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux