[CentOS] Force permissions by directory
Nicolas Thierry-Mieg
Nicolas.Thierry-Mieg at imag.frFri May 25 16:07:37 UTC 2012
- Previous message: [CentOS] Force permissions by directory
- Next message: [CentOS] PCI/DSS compliance on CentOS
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Frank Cox wrote: > Is there a way to force file permissions by directory (and subdirectories > under it)? > > For example, the user's default umask value is 022 but I want it to be 002 in > certain directories. > I have cronjobs like this to regularly give group read permissions (and x for dirs) on /some/dir and all it's subdirs: /usr/bin/find /some/dir -xdev ! -perm -g+r -print -exec chmod g+r \{\} + /usr/bin/find /some/dir -xdev -type d ! -perm -g+x -print -exec chmod g+x \{\} + hth
- Previous message: [CentOS] Force permissions by directory
- Next message: [CentOS] PCI/DSS compliance on CentOS
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the CentOS mailing list