1819504 Members
3208 Online
109603 Solutions
New Discussion юеВ

find: cannot stat ......

 
Sameer Mohbe
New Member

find: cannot stat ......

Hi all,
Upon using "find" to get a list of core files, the system (10.20) returns the following error. The /sisko1 directory is remotely mounted over NFS. Some of the directories it is able to search recursively.

find: cannot stat /sisko1/ueein/stat/u323

Can any body tell me why this is happening?

Thanks in advance,

4 REPLIES 4
Mark Mitchell
Trusted Contributor

Re: find: cannot stat ......

How did you phrase the command?
Sameer Mohbe
New Member

Re: find: cannot stat ......

I gave :
find / -name core -print -exec ls -ls {} \;
Thierry Poels_1
Honored Contributor

Re: find: cannot stat ......

probably some directories you don't have permission on, I guess.

Thierry.
All unix flavours are exactly the same . . . . . . . . . . for end users anyway.
Bill Hassell
Honored Contributor

Re: find: cannot stat ......

NFS is not like other filesystems, especially because it is shared across the network. By default, root on the client machine has no special rights to read or write files on an NFS server. Indeed, root is nobody. Check the passwd file and you'll see the special user ID given to NFS users (user and group ID is -2).

The message: Cannot stat is a shorthand way of saying that permission to read information about a file or directory is denied. With root deprecated to nobody, there may be several directories and files that cannot be seen.

You can edit the server's exports file to give away permissions, but be careful. Read the details in the man page for exports.


Bill Hassell, sysadmin