I've got some files that aren't being served on a site, and assuming it was a permissions issue I ran ls -Z
but keep seeing ? in place of the security context:
-rw-rw-r-- pete pete ? index.cfm
I get this running sudo
as well. Can anyone explain what the ? means or what I need to do to fix the file?
I've tried using sudo chcon system_u:object_r:httpd_config_t:s0 index.cfm
to match the other permissions of files in the folder, but that doesn't help. Also if I try to recreate the file I get the ? again
cat index.cfm > index.bkp
sudo ls -Z
-rw-rw-r-- pete pete ? index.bkp
-rwxrwxrwx. pete pete system_u:object_r:httpd_config_t:s0 index.cfm
mv index.bkp index.cfm
-rw-rw-r-- pete pete ? index.cfm