On 08/07/12 08:49, Jordon Bedwell wrote: > 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. > > Actually I'm unsure if a shell would be invoked in most cases. For example Apache starts as root and drops privs after opening up log files(I wish someone would fix this) and port 80(I wish this could be done with an ACL).
Most other daemons are started not by su, that would process these files in a shell, but by start-stop-daemon and other such applications. -- To UNSUBSCRIBE, email to debian-security-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/5022fc15.4070...@mikemestnik.net