0

What value of (u)mask should I use to give the permission -rwxr-xr-- for the files?

I tried 012 and 022 and didn't work, how do I subtract 666-754?

  • By for the files do you mean regular files? – Edgar Magallon Jan 30 '23 at 00:11
  • Directories are created with 777, and files with 666 modes (except specifics like ssh-keygen). Umask just "removes" bits. So you cannot set 754 on files, just on directories (umask 0023). – Damir Jan 30 '23 at 01:20

0 Answers0