[Pkg-nagios-devel] Bug#478889: Bug#478889: permissions for /var/lib/nagios3/rw/nagios.cmd incorrect

Alexander Wirt formorer at debian.org
Thu May 1 16:28:34 UTC 2008


tag 478889 wontfix
thanks

Stephane Chazelas schrieb am Thursday, den 01. May 2008:

> Package: nagios3
> Version: 3.0.1-1
> Severity: normal
> 
> 
> Hiya,
> 
> $ sudo ls -ld /var/lib/nagios3{,/rw{,/nagios.cmd}}
> drwxr-x--- 5 nagios nagios   4096 2008-04-30 14:46 /var/lib/nagios3
> drwx------ 2 nagios www-data 4096 2008-05-01 16:43 /var/lib/nagios3/rw
> prw-rw---- 1 nagios nagios      0 2008-05-01 16:41 /var/lib/nagios3/rw/nagios.cmd
> 
> $ ls -ld /usr/lib/cgi-bin/nagios3/cmd.cgi
> -rwxr-xr-x 1 root root 219692 2008-04-18 14:34 /usr/lib/cgi-bin/nagios3/cmd.cgi*
> 
> $ grep -e www-data -e nagios /etc/group
> www-data:x:33:
> Debian-exim:x:102:nagios
> nagios:x:124:
> 
> (I had to add "nagios" to "Debian-exim" so it is able to run "mailq").
> 
> /var/lib/nagios3/rw/nagios.cmd is a fifo that is meant to be
> written by the cmd.cgi CGI to give commands to be run to the
> nagios server, such as reschedule a check.
> 
> Here the user running "cmd.cgi" (www-data) can't write to the
> file because it doesn't have search permission to
> /var/lib/nagios3 nor /var/lib/nagios3/rw/nagios.cmd
Please read README.Debian.

Thanks.





More information about the Pkg-nagios-devel mailing list