How to change default ACL permissions of a user?

Hi!

I would like to know if it is possible to change the default setting of ACL in Ubuntu Mate from

Example:

Files:
"rw-rw-r" 0664
to
"rw-r-r" 0644

Folders:
"rw-rw-r/-x" 0775
to:
"rw-r-r/-x" 0755

for all new files and folders that I create in the future for a user 'my-user-name'?

Sorry, I can not express myself better :wink:
I think you know what is meant.

Is there a global ACL file to change this?

See /etc/login.defs this is where umask is set but ... if you add umask to your .profile is will override the global default. The numbers on umask are complement octal so a umask 0022 results in 0755.

2 Likes

thanks @ pavlos_kairis!

Found it out myself after a very long search yesterday on the net, but thanks for the help.

umask 077 @ .profile in home directory is what I set for my home directory and it works perfectly.