Hi folks--

Is there a recommended "best practice" for specifying the umask for daemons when running _stable_?
Or how is the umask established for a system user with no login shell?

For example. Even though the default umask is 022, I wish to run motion(1) as a daemon with umask 002 so it'll create dirs and files with group write privileges.

The daemon is currently started via /etc/init.d/motion with a command like:

start-stop-daemon --chuid motion --start --make-pidfile --pidfile / var/run/motion.pid --background --exec /usr/bin/motion

and all files are created with the default umask (022). Operational constraints are that it must work for an ext2/ext3 mounted '''noacl'', and must run on a _stable_ distribution--i.e. (dpkg version 1.10.28).

Neither
 - (umask 002 ; start-stop-daemon ...)
 - start-stop-daemon .... --exec (umask 002; /usr/bin/motion)

will work. Is there any option other than hacking a ''umask'' option into the daemon?




--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to