2

I have set UMASK 077 in /etc/login.defs and there is no override in ~/.profile or ~/.bashrc.

The umask command still prints 0022 in gnome-terminal, but prints 0007 when I log into tty1. Newly created files get the same permissions as when umask is set to 0022.

Ubuntu version: 16.10

user.dz
  • 49,176

1 Answers1

-1

Edit the /etc/login.defs and change these values accordingly:

  1. UMASK 077 - as you earlier did
  2. Change this USERGROUPS_ENAB yes to USERGROUPS_ENAB no

Now log out then log back in. Create a new file and check the default permissions. Hope it helps.

George Udosen
  • 37,534