This happens for zombie processes. Eg:
[root@localhost (tty9) /]# ps -ef | grep defunct
mloe 4600 4586 0 06:36 tty2 00:00:00 [lynx <defunct>]
root 4738 4737 0 06:44 tty10 00:00:00 [perl <defunct>]
root 4740 645 0 06:44 tty9 00:00:00 grep defunct
[root@localhost (tty9) /]# find /proc -name blah
find: /proc/4600/fd: Permission denied
find: /proc/4738/fd: Permission denied
[root@localhost (tty9) /]#
The reason permission is denied is because the kernel is no longer holding
the information associated with this directory. Actually it's not just
this directory but fd is the only one find notices.
[root@localhost (tty9) /]# cat /proc/4600/* > /dev/null
cat: /proc/4600/cwd: Permission denied
cat: /proc/4600/exe: Permission denied
cat: /proc/4600/fd: Permission denied
cat: /proc/4600/mem: Permission denied
cat: /proc/4600/root: Permission denied
[root@localhost (tty9) /]#
Remeber that /proc is just a virtual filesystem to contain information
about the processes running. When a process zombies it isn't really
running any more - all its resources have already been freed.
'Permission denied' is just the kernel's way of getting out of having to
tell you stuff it doesn't know.
As others have said - you can quite happily ignore this. :)
M.
On Sat, 15 Apr 2000 [EMAIL PROTECTED] wrote:
> Hi ! Everybody
> This sounds strange ;-) and also I got strange feed back for it. :-(
>
> Well, When I try the command: ( Subhash's question )
>
> find / -name "filename"
>
> I get message find:/ proc/6/fd : permission denied.
>
> Actually it was already asked by Subhash in the redhat list. \
>
> IMPORTANT:
>
> But my question is that when I am having root permissions ( i.e. su ) then
> also it show this message.
> Why the access to the file : /proc/5/fd is not even given to the root.
> I am again raising this question to all.
--
To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
as the Subject.