# umask is 0002 but new file is 662, not 664

The issue is that my umask is set to 0002, and I am logged in as a normal user, not root. When I create a dir, its correct, the dir gets 775, but when I create a file in /home/user, its gets 662, when it should get 664.

[johnconner@linux-vm ~]$umask 0002** [johnconner@linux-vm ~]$ ll
drwxrwxr-x. 2 johnconner johnconner 19 May 20 23:23 dir
-rw-rw--w-. 1 johnconner johnconner  0 May 21 12:51 file1


What am I missing?

EDIT: I created another test file in /tmp, and it has 664. This tells me the /home/user dir is different. I cant seem to find a command to view a umask set on a specific dir. I am guessing that is what is happening here.

• Does getfacl report anything for the file and for the parent directory? – user1686 May 21 '20 at 14:52