umask broken in 4.2.8-1-pve?

MikeC

Renowned Member
Jan 11, 2016
79
0
71
Bay Area, California
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.

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

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
default:eek:ther::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.
 
Tested, Works here on ZFS fine. System up todate, Stable: pve-manager/4.2-5/7cf09667 (running kernel: 4.4.8-1-pve)
 
Thanks, Fireon...but I'm running a different release, which may or may not have changes that would produce different results than yours.
I know. I would only say that is working on stable repo.