FG
💻 Software

Can I set the umask on a specific directory?

Fresh7 days ago
Mar 15, 20265965 views
Confidence Score0%
0%

Problem

I have a fairly restrictive umask setting (0077). This is fine, except I have one directory in which I'd like a more permissive setting (0002) to all files created anywhere under that directory. Is there a way to set a umask on a specific directory, so all files created beneath it inherit the same …

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: Can I set the umask on a specific directory?

Low Risk

Use ACL's: Normally, this command would work: For MacOS you have to use . See: manual page. See: this answer. If wanting to have a different umask for a login, normally, you just add a to your shell .profile, or shell startup file. All new directori…

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment