[CentOS] Permission question

Wed Oct 5 22:29:30 UTC 2011
John R Pierce <pierce at hogranch.com>

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