Daemon umask

August 07th, 2012 - 09:20 am ET by Laurie Mercer | Report spam

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.

Laurie
_________________________
lsmercer@gmail.com


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)?<div><br></div><div>In Redhat this is done in the /etc/sysconfig/init file, umask parameter, which is not present in Debian.<br clear="all">
<div><br></div>-- <br>Laurie<br>_________________________<br><a href="mailto:lsmercer@gmail.com">lsmercer@gmail.com</a><br>
</div>



To UNSUBSCRIBE, email to debian-security-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: http://lists.debian.org/CANOj0Mnt=z...9Tg_cM-MQA@mail.gmail.com
email Follow the discussionReplies 3 repliesReplies Make a reply

Replies

#1 Jordon Bedwell
August 07th, 2012 - 10:00 am ET | Report spam
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.


To UNSUBSCRIBE, email to
with a subject of "unsubscribe". Trouble? Contact
Archive: http://lists.debian.org/

Similar topics