monit-general
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

umask questions


From: Jan-Henrik Haukeland
Subject: umask questions
Date: 06 Aug 2002 23:22:15 +0200
User-agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.4 (Civil Service)

Clearly the way monit handles umask now is a bug as shown by Martin
and Mark. 

I had a discussion with Mark Ferlatte off-list with regards to how
monit should set the umask. This is important since programs started
by monit will inherit monits umask.

There are two choices:

1) monit saves the umask it was started with and set this umask when a
   new program is started. This implies that the umask monit inherited
   will be passed on to start/stop programs executed by monit.

2) monit unsets the umask before it start a program and leaves it to
   the program to set its own umask. (This usually means the mask 0666
   unless explicit permissions is set by the program). Alternatively
   monit could set a presumed sane mask (0022) instead of un-setting 
   the mask.


Any opinions on which strategy to choose ? 

-- 
Jan-Henrik Haukeland



reply via email to

[Prev in Thread] Current Thread [Next in Thread]