Very strange behavior iwth umask running on 4.2.8-1 (ZFS). Changes to umask are ignored when done both from the command line, and changed in /etc/profile. The default umask 0022 is applied to all users, but changes are ignored.
I'm also seeing other anomalies with directory permissions.
A directory with 775 won't allow someone in the folder's group to create files within.
Here I belong to the group that owns the dir, and the dir has group write perms, yet I am not allowed to create files within. Maybe it's me, but in tests on non-proxmox linux servers, both the above cases function as they're supposed to.
pilotmc@corp:~$ umask
0002
pilotmc@corp:~$ touch f
pilotmc@corp:~$ ls -l f
-rw-r--r-- 1 pilotmc devs 0 May 24 16:31 f
pilotmc@corp:~$ umask 000
pilotmc@corp:~$ touch g
pilotmc@corp:~$ ls -l
total 1
-rw-r--r-- 1 pilotmc devs 0 May 24 16:31 f
-rw-r--r-- 1 pilotmc devs 0 May 24 16:31 g
pilotmc@corp:~$ umask 111
pilotmc@corp:~$ umask
0111
pilotmc@corp:~$ touch h
pilotmc@corp:~$ ls -l
total 2
-rw-r--r-- 1 pilotmc devs 0 May 24 16:31 f
-rw-r--r-- 1 pilotmc devs 0 May 24 16:31 g
-rw-r--r-- 1 pilotmc devs 0 May 24 16:32 h
0002
pilotmc@corp:~$ touch f
pilotmc@corp:~$ ls -l f
-rw-r--r-- 1 pilotmc devs 0 May 24 16:31 f
pilotmc@corp:~$ umask 000
pilotmc@corp:~$ touch g
pilotmc@corp:~$ ls -l
total 1
-rw-r--r-- 1 pilotmc devs 0 May 24 16:31 f
-rw-r--r-- 1 pilotmc devs 0 May 24 16:31 g
pilotmc@corp:~$ umask 111
pilotmc@corp:~$ umask
0111
pilotmc@corp:~$ touch h
pilotmc@corp:~$ ls -l
total 2
-rw-r--r-- 1 pilotmc devs 0 May 24 16:31 f
-rw-r--r-- 1 pilotmc devs 0 May 24 16:31 g
-rw-r--r-- 1 pilotmc devs 0 May 24 16:32 h
I'm also seeing other anomalies with directory permissions.
A directory with 775 won't allow someone in the folder's group to create files within.
pilotmc@corp:/var/www$ ls -ld test
drwxrwxr-x+ 2 www-data commdev 2 May 24 16:35 test
pilotmc@corp:/var/www$ cd test
pilotmc@corp:/var/www/test$ touch f
touch: cannot touch ‘f’: Permission denied
pilotmc@corp:/var/www/test$ groups
sudo nagios webmin devs sysadmin network commdev
pilotmc@corp:/var/www/test$ getfacl .
# file: .
# owner: www-data
# group: commdev
user::rwx
group::rwx
other::r-x
default:user::rwx
default:group::r-x
defaultther::r-x
drwxrwxr-x+ 2 www-data commdev 2 May 24 16:35 test
pilotmc@corp:/var/www$ cd test
pilotmc@corp:/var/www/test$ touch f
touch: cannot touch ‘f’: Permission denied
pilotmc@corp:/var/www/test$ groups
sudo nagios webmin devs sysadmin network commdev
pilotmc@corp:/var/www/test$ getfacl .
# file: .
# owner: www-data
# group: commdev
user::rwx
group::rwx
other::r-x
default:user::rwx
default:group::r-x
defaultther::r-x
Here I belong to the group that owns the dir, and the dir has group write perms, yet I am not allowed to create files within. Maybe it's me, but in tests on non-proxmox linux servers, both the above cases function as they're supposed to.