Subject: Re: bin/27309 syslogd -u can't create pidfile
To: None <netbsd-bugs@NetBSD.org>
From: der Mouse <mouse@Rodents.Montreal.QC.CA>
List: netbsd-bugs
Date: 10/08/2006 01:48:02
I'd consdier this pilot error, or at worst a doc bug. I see no reason
why syslogd *should* write /var/run/syslogd.pid when "-u"ed to some
random user.
If it's being done for least-privilege use for the main syslogd for a
host, then the simple thing is to chown the pidfile to that user when
you chown the logfiles to that user. syslogd won't be able to remove
it on exit, but that won't bother it, and it'll get rewritten on next
start.
/~\ The ASCII der Mouse
\ / Ribbon Campaign
X Against HTML mouse@rodents.montreal.qc.ca
/ \ Email! 7D C8 61 52 5D E7 2D 39 4E F1 31 3E E8 B3 27 4B