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

Re: Daemon umask



Hi,

On 08/07/2012 08:15 AM, Laurie Mercer wrote:
> Is it possible to set the umask to a value (in this case 27) at boot
> time so that all daemon processes started at boot time will have this
> umask by default (unless they override it)?
> 
> In Redhat this is done in the /etc/sysconfig/init file, umask parameter,
> which is not present in Debian.

You can adjust /etc/login.defs, you can edit /etc/profile (via adding a
sh file to /etc/profile.d) and check for the user and set it's umask, or
you can create a common home folder for all your daemons and add it to
.profile.  Or you can go and edit each daemons init file.


Reply to: