Back to the learning path

umask

umask = user file-creation mask Command details
Step 1/1: Default permissions

New files get 666 (directories 777) minus the bits in the umask. The default umask 022 gives files 644. umask 077 makes new files private to you.

$ umask 077
Fundamentalsumask
Make new files private by default
Set the permission mask to 027 with umask, then create the empty file secret.txt and see its permissions.
chgrpNext lesson:whoami