logo image permissions
Posted: Sun Sep 08, 2013 8:09 pm
It's all about the big issues over here today. Certain logo's in the nagios/share/images/logos dir are unable to be displayed but I can't for the life of me work out why, as far as I can tell the file permissions are identical. I'll be using cisco.png (working) and workstation.png (not working) as examples:
cisco.png
/usr/local/nagios/share/images/logos # ls -l cisco.png
-rwxr-xr-x. 1 root root 5211 Aug 29 2011 cisco.png
/usr/local/nagios/share/images/logos # ls -l workstation.png
-rwxr-xr-x 1 root root 2508 Jul 6 10:12 workstation.png
So the only difference is the selinux dot after the perms. But selinux is disabled:
/usr/local/nagios/share/images/logos # sestatus
SELinux status: disabled
And even so the efacls are the same anyway (as you would expect as the dot means nothing set):
/usr/local/nagios/share/images/logos # getfacl cisco.png
# file: cisco.png
# owner: root
# group: root
user::rwx
group::r-x
other::r-x
/usr/local/nagios/share/images/logos # getfacl workstation.png
# file: workstation.png
# owner: root
# group: root
user::rwx
group::r-x
other::r-x
And the apache log info:
172.31.121.59 - - [08/Sep/2013:12:07:29 +1000] "GET /nagiosxi/includes/components/nagioscore/ui/images/logos/cisco.png HTTP/1.1" 200 5211
[Mon Sep 09 10:40:26 2013] [error] [client 172.31.121.248] File does not exist: /usr/local/nagiosxi/html/includes/components/nagioscore/ui/images/logos/workstation.png
Ideas?
cisco.png
/usr/local/nagios/share/images/logos # ls -l cisco.png
-rwxr-xr-x. 1 root root 5211 Aug 29 2011 cisco.png
/usr/local/nagios/share/images/logos # ls -l workstation.png
-rwxr-xr-x 1 root root 2508 Jul 6 10:12 workstation.png
So the only difference is the selinux dot after the perms. But selinux is disabled:
/usr/local/nagios/share/images/logos # sestatus
SELinux status: disabled
And even so the efacls are the same anyway (as you would expect as the dot means nothing set):
/usr/local/nagios/share/images/logos # getfacl cisco.png
# file: cisco.png
# owner: root
# group: root
user::rwx
group::r-x
other::r-x
/usr/local/nagios/share/images/logos # getfacl workstation.png
# file: workstation.png
# owner: root
# group: root
user::rwx
group::r-x
other::r-x
And the apache log info:
172.31.121.59 - - [08/Sep/2013:12:07:29 +1000] "GET /nagiosxi/includes/components/nagioscore/ui/images/logos/cisco.png HTTP/1.1" 200 5211
[Mon Sep 09 10:40:26 2013] [error] [client 172.31.121.248] File does not exist: /usr/local/nagiosxi/html/includes/components/nagioscore/ui/images/logos/workstation.png
Ideas?