Plenty of examples on how to set umask for a user... but how do you read (or uncover) the default umask for a given user (say the logged in user)
Tell me more
×
Unix & Linux Stack Exchange is a question and answer site for
users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.
|
With the
|
|||
|
|
|
To make sure a command is called with a specific command, you could wrap it inside a script or a function that starts a subshell with the Something like:
|
|||
|
|

umaskis not associated with a user but with a process. – Stephane Chazelas Jan 28 at 21:31umaskto change to002whenever I run a particular command ($ brew …) but it can default back to022at all other times. possible or wishful thinking? – Meltemi Jan 28 at 23:56