How to set permissions on new files in UNIX?
I want all newly created folders in /home/user had rights rwx --x --x
a new file - rwx r-- r--
How to do that?
I tried to use `setfacl` in different combinations, but have failed.
asked June 5th 19 at 21:38
umask 0022 to your .bashrc (or similar file).
What you need is the umask.
But it works not as you want that is so different rights for folders and files ask will not work.
Find more questions by tags Access rights* nix-like systems