setgid bit in umask of systemd service script
Clash Royale CLAN TAG #URR8PPP up vote 1 down vote favorite I have a downloader service running, and I'd like it to set the setgid bit of every directory it creates. Its already doing so, but I suspect that's because at the moment, the parent directory also has setgid. What do I set the umask to? I'm also wondering how umask, particularly in a systemd script, works for the "4th" digit. I understand that its inverted, so that umask = 002 is like chmod 775. But what about umask = 2002. Is that chmod 5775? or chmod 2775? Thanks! linux ubuntu files filesystems share | improve this question asked Jan 21 at 21:25 Kayson 8 2 It should be 2775 ! â George Udosen Jan 22 at 1:33 add a comment  | up vote 1 down vote favorite I have a downloader service running, and I'd like it to set the setgid bit of every directory it creates. Its already doing so, but I suspect that's becaus...