LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   file errors in /etc (https://www.linuxquestions.org/questions/linux-server-73/file-errors-in-etc-4175509437/)

cjashu 06-27-2014 04:59 PM

file errors in /etc
 
Hi guy,

please i will really appreciate you help.

I have a rhel 5 server and some files in my /etc directory are showing like this

?--------- ? ? ? ? ? fstab

Any help with this will be really appreciated .

Thanks

John VV 06-28-2014 12:56 PM

what command are you running?
as far as i know there is NO program that will output this
Code:

?--------- ? ? ? ? ?
you also need to be root to edit system files

Doc CPU 06-28-2014 03:00 PM

Hi there,

Quote:

Originally Posted by John VV (Post 5195491)
what command are you running?

presumably 'ls -l'.

Quote:

Originally Posted by John VV (Post 5195491)
as far as i know there is NO program that will output this
Code:

?--------- ? ? ? ? ?

Oh yes, 'ls' does if the meta information of a file (owner, group, permissions, timestamp) isn't accessible. I've seen that a few times with stale Samba shares. But I'd be worried about the file system integrity if I saw this in a directory of the root file system.

Quote:

Originally Posted by John VV (Post 5195491)
you also need to be root to edit system files

Yes, of course. But usually you don't need to be root to list the contents of /etc.

[X] Doc CPU


All times are GMT -5. The time now is 08:32 PM.