In the past, I have always set umask
at ~/.profile
. I set a umask
of 077
so my documents get a permission of 600 (rw-------)
. But setting this at ~/.profile
no longer works in Ubuntu 17.04.
So as new documents get created in a gnome session on Ubuntu 17.04, where can I configure so that they get created with permission 600?
Best Answer
To set permissions for all directories and files that are created day-forward by any user:
New files will be 600. New directories will be 700.