能ls出来,基本是r-x权限,但是里面的文件或者子目录不能访问?

root@LDAP01:[/proc/17622]ls -l
ls: 无法读取符号链接cwd: 没有那个文件或目录
ls: 无法读取符号链接root: 没有那个文件或目录
ls: 无法读取符号链接exe: 没有那个文件或目录
总用量 0
dr-xr-xr-x  2 root root 0 12月 31 10:02 attr
-r--------  1 root root 0 12月 31 10:01 auxv
-r--r--r--  1 root root 0 12月 31 10:06 cmdline
-rw-r--r--  1 root root 0 12月 31 10:01 coredump_filter
lrwxrwxrwx  1 root root 0 12月 31 10:01 cwd
-r--------  1 root root 0 12月 31 10:01 environ
lrwxrwxrwx  1 root root 0 12月 31 10:01 exe
dr-x------  2 root root 0 12月 31 10:02 fd
-r--r--r--  1 root root 0 12月 31 10:01 io
-r--------  1 root root 0 12月 31 10:01 limits
-rw-r--r--  1 root root 0 12月 31 10:01 loginuid
-r--r--r--  1 root root 0 12月 31 10:01 maps
-rw-------  1 root root 0 12月 31 10:01 mem
-r--r--r--  1 root root 0 12月 31 10:01 mounts
-r--------  1 root root 0 12月 31 10:01 mountstats
lrwxrwxrwx  1 root root 0 12月 31 10:01 root
-r--------  1 root root 0 12月 31 10:01 smaps
-r--r--r--  1 root root 0 12月 31 10:06 stat
-r--r--r--  1 root root 0 12月 31 10:01 statm
-r--r--r--  1 root root 0 12月 31 10:06 status
dr-xr-xr-x  3 root root 0 12月 31 10:02 task

root@LDAP01:[/proc/17622]stat task
  File: ‘task’
  Size: 0               Blocks: 0          IO Block: 1024   目录
Device: 3h/3d   Inode: 1154875395  Links: 3
Access: (0555/dr-xr-xr-x)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 2010-12-31 10:02:28.893918064 +0800
Modify: 2010-12-31 10:02:28.893918064 +0800
Ch ange: 2010-12-31 10:02:28.893918064 +0800

root@LDAP01:[/proc/17622]stat fd
  File: ‘fd’
  Size: 0               Blocks: 0          IO Block: 1024   目录
Device: 3h/3d   Inode: 1154875401  Links: 2
Access: (0500/dr-x------)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 2010-12-31 10:25:10.589587720 +0800
Modify: 2010-12-31 10:25:10.589587720 +0800
Ch ange: 2010-12-31 10:25:10.589587720 +0800

root@LDAP01:[/proc/17622]cd fd
-bash: cd: fd: 没有那个文件或目录

root@LDAP01:[/proc/17622]cd task
-bash: cd: task: 没有那个文件或目录

root@LDAP01:[/proc/17622]ls -l cwd
ls: 无法读取符号链接cwd: 没有那个文件或目录
lrwxrwxrwx  1 root root 0 12月 31 10:35 cwd
root@LDAP01:[/proc/17622]ls -l cmdline
-r--r--r--  1 root root 0 12月 31 10:32 cmdline
root@LDAP01:[/proc/17622]ls -l exe
ls: 无法读取符号链接exe: 没有那个文件或目录
lrwxrwxrwx  1 root root 0 12月 31 10:35 exe
root@LDAP01:[/proc/17622]ls -l root
ls: 无法读取符号链接root: 没有那个文件或目录
lrwxrwxrwx  1 root root 0 12月 31 10:35 root
root@LDAP01:[/proc/17622]
其中cwd,exe,root三个文件(符号链接)和2个子目录fd,task不能访问(ls -l) ,也不能stat,是否磁道有问题?

作者: fcx2002   发布时间: 2010-12-31

procfs 只是内核暴露给用户以便用户查看系统信息的“虚拟”出来的文件夹,并不存在于真正的磁盘上,所以肯定不是磁道的问题。

作者: deepwhite   发布时间: 2010-12-31