So this is situation:
got server for web-developers. There are many developers. All developers + PHP + Apache belongs to www group. There is a development directory - development.
The goal is that every file in development directory has 755 permissions and whenever a any developer creates, modifies a file in development directory, files will still have 755.
So I have read a number of acl tutorials, guides and howto's but I still can not get the result I want.
- my disk is mounted with
acl - I got
chown -R www:www development - added
chmod g+s development I set a number of
aclrules ondevelopmentdirectory and got this:$ getfacl development # file: development # owner: www # group: www # flags: -s- user::rwx user:www:rwx group::rwx group:www:rwx mask::rwx other::r-x default:user::rwx default:user:www:rwx default:group::rwx default:group:www:rwx default:mask::rwx default:other::r-x p.s. I know its messy, was doing a number of testsAccording to my idea of
ACL, if directory had such rules, my task should be achieved, but when I try to create a file indevelopmentdir, I get:-rw-rw-r--+ 1 www www 0 Nov 21 09:14 newfile
I can not seem to understand why it creates rw- instead rwx.
It is probably something simple that I missed or some general concept that I don't understand.
ls. ACLs override the basic file permissions. Usegetfaclto view the permissions on the file.