[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: umask questions
From: |
rory |
Subject: |
Re: umask questions |
Date: |
Tue, 6 Aug 2002 14:38:46 -0700 (PDT) |
> 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 ?
>
How about 2, but alternatively having a config file option to set a umask
other than the default (perhaps 0022)?