Existing file can't be seen with 'ls'

Existing file can't be seen with 'ls'

Post by Be » Fri, 10 May 2002 03:33:04



Hi people,

Something strange happened.  My RedHat 7.2 worked fine a day ago.
Now, my SSHD suddenly fails.  I didn't modify the files (sshd and nfs)
under /etc/rc.d/init.d/ however, now whenever I try to start ssh
either thru start-up script or manually, it complains the following

Starting sshd: execvp: No such file or directory [FAILED]

The reason seems to be execvp cannot read the
/etc/rc.d/init.d/functions file.

The file is in the directory but it is not shown.  In other words,
when I do a "ls", the file doesn't appear(even I have a 755 permission
on it).  However, if I vi the file, the file loads into vi properly.
Because of this strange behavior, I try to create a new file called
functions in my home directory.  The file is created and can be more
or vi but when I do a 'ls', it is not there.  It seems like the kernel
won't display any files that is named "functions".

Well, I am not a strong linux guy, so any idea why this is so strange:
file is there but cannot be read by other scripts or listed.

Any help would be greatly appreciated..

Thank you

P.S.  Just some more info if it helps, my NFSD failed too but it
doesn't complains about the functions file problem.  It complains
something about connection refused.

Ben

 
 
 

Existing file can't be seen with 'ls'

Post by Midnight Write » Mon, 13 May 2002 22:54:19



  >
  > [...]
  > The reason seems to be execvp cannot read the /etc/rc.d/init.d/functions
  > file.
  >
  > The file is in the directory but it is not shown.  In other words, when
  > I do a "ls", the file doesn't appear(even I have a 755 permission on
  > it).  However, if I vi the file, the file loads into vi properly.

I'm just a newbie, and you've probably already tried this - but I'd give
fsck a try if my filesystem was acting so strangely.

Good luck!
                                       -=<MIDNIGHT WRITER>=-
[posted and emailed]
--
               EMACS - Eight Megabytes And Continuous Swapping


 
 
 

1. Existing file can't be seen with 'ls'

Hi people,

Something strange happened.  My RedHat 7.2 worked fine a day ago.
Now, my SSHD suddenly fails.  I didn't modify the files (sshd and nfs)
under /etc/rc.d/init.d/ however, now whenever I try to start ssh
either thru start-up script or manually, it complains the following

Starting sshd: execvp: No such file or directory [FAILED]

The reason seems to be execvp cannot read the
/etc/rc.d/init.d/functions file.

The file is in the directory but it is not shown.  In other words,
when I do a "ls", the file doesn't appear(even I have a 755 permission
on it).  However, if I vi the file, the file loads into vi properly.
Because of this strange behavior, I try to create a new file called
functions in my home directory.  The file is created and can be more
or vi but when I do a 'ls', it is not there.  It seems like the kernel
won't display any files that is named "functions".

Well, I am not a strong linux guy, so any idea why this is so strange:
file is there but cannot be read by other scripts or listed.

Any help would be greatly appreciated..

Thank you

P.S.  Just some more info if it helps, my NFSD failed too but it
doesn't complains about the functions file problem.  It complains
something about connection refused.

Ben

2. Need some advice with SETUP

3. Odd Solaris problem: file is seen by 'vi' but not 'ls' ???

4. video card questions

5. 64k files in dir - 'ls' slow but 'strace ls' fast?

6. Displaying the address of a variable in memory

7. 'cat file' but only if 'file' exist

8. How to 'find . -print' without looking in the '/proc/ directory

9. 'ls -e' vs 'ls -l'

10. 'IRQ timeout' message and 'DMA disabled' with 'ls -l'

11. 'ping' sees route but 'telnet' doesn't??

12. logon not seen by 'w' and 'who'?

13. wu-ftp server problem, unable to use 'ls' or 'dir'