On 02Dec2007 19:02, Mike Brandonisio <[EMAIL PROTECTED]> wrote: | I have a centos server with some files that are missing. When I SSH | in and list the folder the files names are displayed with red text on | a black background.
Do you know how the files came to be missing? A crash? Sysadmin finger trouble? | I have the files to replace them. I cannot do | anything with the files that are in the original location. When I try | to replace the missing files I get an error. | | [EMAIL PROTECTED] [/usr/share/man/man8]# cp /root/missing_files/mount.cifs. | 8.gz /usr/share/man/man8/ | cp: cannot create regular file `/usr/share/man/man8/mount.cifs.8.gz': | No such file or directory | | when I try to remove the missing files first I get an error: | | [EMAIL PROTECTED] [/usr/share/man/man8]# rm mount.cifs.8.gz | rm: cannot lstat `mount.cifs.8.gz': No such file or directory | | Yet when you list the folder the file name is listed red text on a | black background. Red-on-black is probably the "I see the name but can't stat() it" colour code. (I wouldn't know - I eschew colourising ls commands). Usually you only see this on symlinks that point at something that does not exist. What does this report? cd /usr/share/man/man8 /bin/ls -ld mount.cifs* /bin/rm mount.cifs.8.gz I know "rm" is saying "lstat", but maybe it means "stat" (follow symlink) and the .gz is a symlink. For example on my Fedora box I see this: $ cd /usr/share/man/man8 $ ls -ld mount* -rw-r--r-- 1 root root 20834 2007-10-08 23:49 mount.8.gz -rw-r--r-- 1 root root 5536 2007-11-22 11:47 mount.cifs.8.gz lrwxrwxrwx 1 root root 13 2007-06-14 18:53 mount.ncp.8.gz -> ncpmount.8.gz -rw-r--r-- 1 root root 936 2007-09-18 05:15 mount.nfs.8.gz -rw-r--r-- 1 root root 2721 2007-09-18 05:15 mountd.8.gz Here, mount.cifs.8.gz is not a symlink, but mount.ncp.8.gz is. If ncpmount.8.gz were missing then mount.ncp.8.gz would get the red-on-black treatment. Cheers, -- Cameron Simpson <[EMAIL PROTECTED]> DoD#743 http://www.cskk.ezoshosting.com/cs/ Truly great madness can not be achieved without significant intelligence. - Henrik Tikkanen To unsubscribe from this list, please email [EMAIL PROTECTED] & you will be removed. Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/LINUX_Newbies/ <*> Your email settings: Individual Email | Traditional <*> To change settings online go to: http://groups.yahoo.com/group/LINUX_Newbies/join (Yahoo! ID required) <*> To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
