Re: Set default file/dir permissions?

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



On Thursday 26 August 2010 10:35:08 Tim Nelson wrote:
> I've looked at and tested umask but it only seems to allow/disallow
> specific permissions, not force permissions. Am I missing something? How
> can I force all files/dirs created under a specific directory to have the
> permissions (and ownership if possible) that I specify?

Hi,

You need to jump into ACLs.   You'll do something like:

http://tinyurl.com/257k9qy

If you don't want to deal with ACLs and your requirements aren't too specific 
you could set the SGID, bit (Set Group ID) so that every file created under the 
directory will be owned by the group owner of that directory:

chown myGroup /var/appdata
chmod g+s /var/adppdata

HTH,
Jorge
_______________________________________________
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