daemon(1) writes PID files as 0600
"Dan Mahoney (ports)" <[email protected]>
| Newsgroups | gmane.os.freebsd.questions |
|---|---|
| Message-ID | <[email protected]> |
Hey folks, Lots of startup scripts write PID files as 644 or 755, but for whatever reason, the PID files created by daemon(1) The source code (/usr/src/usr.sbin/daemon.c) seems to call pidfile_write, but doesn't supply any mask info that I can see. Is there a way to override this? We'd like service(1) to be able to run status commands as a nonroot user. -Dan