Set sudo umask apart from the user calling it
This seems to have been overlooked:
Defaults umask_override
which does what was asked (see the sudoers manpage):
umask_override
If set,sudo
will set theumask
as specified bysudoers
without modification. This makes it possible to specify a more permissiveumask
in sudoers than the user's ownumask
and matches historical behavior. Ifumask_override
is not set,sudo
will set the umask to be the union of the user's umask and what is specified insudoers
. This flag is off by default. If set,sudo
will run the command in a pseudo-pty even if no I/O logging is being gone. A malicious program run undersudo
could conceivably fork a background process that retains to the user's terminal device after the main program has finished executing. Use of this option will make that impossible. This flag is off by default.
Related videos on Youtube
bOy
Updated on September 18, 2022Comments
-
bOy over 1 year
Does anyone tried to create a pop up confirmation message in gravity form. Also I would like to prevent the form from hiding after the submission.
Btw, in my Gravity Form confirmation type settings, I choose text as I don't want to redirect to any other page but only wants to display a popup confirmation text.
-
Ryan Williams almost 4 yearsBe careful editing /etc/sudoers using sudo. Syntax errors result may result in a lockout.
-
Marius almost 4 yearsThat's what
visudo
is for.