Set sudo umask apart from the user calling it

4,022

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 the umask as specified by sudoers without modification. This makes it possible to specify a more permissive umask in sudoers than the user's own umask and matches historical behavior. If umask_override is not set, sudo will set the umask to be the union of the user's umask and what is specified in sudoers. 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 under sudo 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.

Share:
4,022

Related videos on Youtube

bOy
Author by

bOy

Updated on September 18, 2022

Comments

  • bOy
    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
    Ryan Williams almost 4 years
    Be careful editing /etc/sudoers using sudo. Syntax errors result may result in a lockout.
  • Marius
    Marius almost 4 years
    That's what visudo is for.