0

I want to set up a folder such that anything created within it (directories, files) inherit default permissions 777. Can we set a umask for a particular directory to achieve this?

Zanna
  • 70,465
Kartik Agarwal
  • 685
  • 6
  • 13
  • 1
    There's rarely a good reason to use 777. – muru Mar 28 '18 at 07:49
  • you can't have files created by default with execute permission - no umask setting allows it – Zanna Mar 28 '18 at 07:51
  • umask is not a per-directory setting. It is a per-process setting, and governs only the behavior of that process and its children (unless the child process changes umask). – waltinator Mar 28 '18 at 14:09

0 Answers0