Bug#344488: [Adduser-devel] Bug#344488: deluser: Strange "Can't opendir(/proc/9908/task): No such file or directory" message

Kai Hendry hendry at iki.fi
Sun Jan 15 22:45:22 UTC 2006


On 2006-01-13T08:31+0100 Marc Haber wrote:
> On Fri, Jan 13, 2006 at 02:15:36PM +1100, Kai Hendry wrote:
> > Can't opendir(/proc/9908/task): No such file or directory
> >  at /usr/sbin/deluser line 283
> > Can't opendir(/proc/29082/task): No such file or directory
> >  at /usr/sbin/deluser line 283
> Are these always these two PIDs, 9908 and 29082? Can you show me the
> access rights on the directories in question?

bible$ ls -al /proc/9908/task
ls: /proc/9908/task: No such file or directory
bible$ ls -al /proc/29082/task
ls: /proc/29082/task: No such file or directory


bible$ ls -al /proc/29082
ls: /proc/29082: No such file or directory
bible$ ls -al /proc/9908
ls: cannot read symbolic link /proc/9908/cwd: Permission denied
ls: cannot read symbolic link /proc/9908/root: Permission denied
ls: cannot read symbolic link /proc/9908/exe: Permission denied
total 0
dr-xr-xr-x   3 jo   jo   0 2006-01-15 20:59 .
dr-xr-xr-x 112 root root 0 2005-10-20 19:14 ..
dr-xr-xr-x   2 root root 0 2006-01-15 22:50 attr
-r--------   1 root root 0 2006-01-15 22:50 auxv
-r--r--r--   1 root root 0 2006-01-15 22:50 cmdline
lrwxrwxrwx   1 root root 0 2006-01-15 22:50 cwd
-r--------   1 root root 0 2006-01-15 22:50 environ
lrwxrwxrwx   1 root root 0 2006-01-15 20:59 exe
dr-x------   2 root root 0 2006-01-15 22:50 fd
-r--r--r--   1 root root 0 2006-01-15 22:50 maps
-rw-------   1 root root 0 2006-01-15 22:50 mem
-r--r--r--   1 root root 0 2006-01-15 22:50 mounts
lrwxrwxrwx   1 root root 0 2006-01-15 22:50 root
-r--r--r--   1 root root 0 2006-01-15 22:50 stat
-r--r--r--   1 root root 0 2006-01-15 22:50 statm
-r--r--r--   1 root root 0 2006-01-15 22:50 status
dr-xr-xr-x   3 root root 0 2006-01-15 22:49 task
-r--r--r--   1 root root 0 2006-01-15 22:50 wchan


> Maybe deluser should not descend into virtual file systems like sysfs,
> procfs, devpts and usbfs?

That's probably just it.




More information about the Adduser-devel mailing list