On Sun, Apr 22, 2001 at 08:23:04PM -0700, Ian Dobson <[EMAIL PROTECTED]> wrote:
| how do you set the umask of a daemon running as a particular
| user?
Once it's running, you can't. What you do is set the umask in the script
which fires off the daemon.
Example: suppose the startup script says
su the-user -c 'the-daemon &'
Make that say:
su the-user -c 'umask XXX; the-daemon &'
Note that some daemons overwrite their umask anyway.
| I change it in the .bash_profile but it doesn't do anything, where is
| it set?
The daemon will not be being started from a login shell, so the .bash_profile
will not be consulted.
--
Cameron Simpson, DoD#743 [EMAIL PROTECTED] http://www.zip.com.au/~cs/
Ninety percent of everything is crud. - Theodore Sturgeon
_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list