init script has hard coded chown
Bug #929848 reported by
Paul
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
nagios3 (Ubuntu) |
Expired
|
Wishlist
|
Unassigned |
Bug Description
I changed the user the nagios runs under and could not get the services to start; so after looking around I found that the init script was chowning /var/run/nagios3 directory.
/etc/init.d/nagios3
start () {
DIRECTORY=
[ ! -d $DIRECTORY ] && mkdir -p $DIRECTORY
chown nagios:nagios $DIRECTORY
Change:
/etc/init.d/nagios3
start () {
DIRECTORY=
[ ! -d $DIRECTORY ] && mkdir -p $DIRECTORY
chown "$(get_config nagios_
To post a comment you must log in.
Thanks for the bug report.
Please can you confirm rational for switching the user it runs as?