I used setfacl to set permissions as follows:
~/scripts/lib # getfacl files/
As you can see all settings lead to permissions 777 but that’s not what happens. What happens if I say, touch a file, I get: 666 as this shows:
:~/scripts/lib # l files/
drwxrwsrwx+ 2 root root 4096 2010-06-04 02:28 ./
drwxr-xr-x 3 root root 4096 2010-06-04 02:25 …/
-rw-rw-rw-+ 1 root root 0 2010-06-04 02:23 a.sh
Same for files that are not obviously scripts such as just a.txt.
My umask is 0022.
Does anyone know why this is? Is it changeable for specific directories?
This is a special world viewed directory required by a piece of software… in other words, no, I am not in a habit of setting file permissions to 777 so please no comments about you shouldn’t be using such permissions.
Truthfully, I can probably get away with permissions 666 and will if I can but right now I just want to know why it’s happening this way and how to control it.