I used setfacl to set permissions as follows:
~/scripts/lib # getfacl files/
file: files/
owner: root
group: root
flags: -s-
user::rwx
group::rwx
other::rwx
default:user::rwx
default:group::rwx
default:mask::rwx
default:other::rwx
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/
total 8
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.