On 24 Jul 2009, at 12:41, Andy Ashley wrote: Hi, Im having an issue which is user/group ID related. Can't amend group ownership for htpasswd files: Operation not permitted at /usr/local/nagios/bin/nagconfgen.pl line 1353. The attempted command at line 1353 is: chown -1, $nagcmd_gid, "$configfilepath/htpasswd.users", "$configfilepath/htpasswd.admin" or die "Can't amend group ownership for htpasswd files: $!";; # cat /etc/passwd | grep nagios: nagios:x:499:499:nagios:/var/log/nagios:/bin/sh # cat /etc/group | grep nag nagiocmd:x:500: nagcmd:x:498:nagios nagios:x:499:apache
nagcmd group is used by apache user/process to read/write files that nagios owns; nagios group is everything else (to ensure access is reasonably limited to apache user). No idea what nagiocmd is (if its ours, its a bug somewhere).
nagcmd should be a suplimentaary group for nagios and apache, i.e. does
groups nagios
show group membership of nagios and nagcmd? And does the same for your apache user show nagcmd too?
What happens if you run the command by hand as nagios? i.e.
chgrp nagcmd /usr/local/nagios/etc/htpasswd.user /usr/local/nagios/etc/htpasswd.admin
Duncs -- Duncan Ferguson Senior Developer 
Opsera Limited | Unit 69 Suttons Business Park Reading | Berkshire | RG6 1AZ | UK
Phone: +44 (0) 845 057 7887 Mobile: +44 (0) 7968 148 748 Skype: duncan_j_ferguson Email: [email protected] www.opsera.com
Opsera Limited is registered in the UK under Company Number 5396532. Our registered office is Gorse View, Horsell Rise, Woking, Surrey, GU21 4RB.
|
_______________________________________________
Opsview-users mailing list
[email protected]
http://lists.opsview.org/lists/listinfo/opsview-users