Marc Haber
2005-Dec-23 08:03 UTC
Bug#344488: deluser: Strange "Can''t opendir(/proc/9908/task): No such file or directory" message
tags #344488 moreinfo thanks On Fri, Dec 23, 2005 at 12:13:13AM +0000, Kai Hendry wrote:> Package: deluser > Version: adduser > Severity: normalwhich version?> I discovered a user that shouldn''t probably be on the system, so I > trying to nuke it: > > bible$ sudo deluser --remove-all-files tester > Looking for files to backup/remove... > Can''t opendir(/proc/9908/task): No such file or directory > at /usr/sbin/deluser line 283 > Removing files... > Removing user `tester''... > done.Can you still see how the /etc/passwd line of that user looked like, maybe from one of the numerous backups of /etc/passwd? Greetings Marc -- ----------------------------------------------------------------------------- Marc Haber | "I don''t trust Computers. They | Mailadresse im Header Mannheim, Germany | lose things." Winona Ryder | Fon: *49 621 72739834 Nordisch by Nature | How to make an American Quilt | Fax: *49 621 72739835
Debian Bug Tracking System
2005-Dec-23 08:03 UTC
[Adduser-devel] Processed: Re: Bug#344488: deluser: Strange "Can''t opendir(/proc/9908/task): No such file or directory" message
Processing commands for control@bugs.debian.org:> tags #344488 moreinfoBug#344488: deluser: Strange "Can''t opendir(/proc/9908/task): No such file or directory" message There were no tags set. Tags added: moreinfo> thanksStopping processing here. Please contact me if you need assistance. Debian bug tracking system administrator (administrator, Debian Bugs database)
Kai Hendry
2006-Jan-13 03:33 UTC
[Adduser-devel] Bug#344488: deluser: Strange "Can''t opendir(/proc/9908/task): No such file or directory" message
On 2005-12-23T08:52+0100 Marc Haber wrote:> tags #344488 moreinfo > thanks > > On Fri, Dec 23, 2005 at 12:13:13AM +0000, Kai Hendry wrote: > > Package: deluser > > Version: adduser > > Severity: normal > > which version?3.80 Something b0rked up with reportbug when I reported this. Sorry.> > I discovered a user that shouldn''t probably be on the system, so I > > trying to nuke it: > > > > bible$ sudo deluser --remove-all-files tester > > Looking for files to backup/remove... > > Can''t opendir(/proc/9908/task): No such file or directory > > at /usr/sbin/deluser line 283 > > Removing files... > > Removing user `tester''... > > done. > > Can you still see how the /etc/passwd line of that user looked like, > maybe from one of the numerous backups of /etc/passwd?bible$ sudo egrep test /var/backups/passwd.bak bible$ Hmmm, I should have done this sooner as I can''t see backup with the user tester in it. I just tried a user ''test'': bible$ sudo adduser test Adding user `test''... Adding new group `test'' (1006). Adding new user `test'' (1006) with group `test''. Creating home directory `/home/test''. Copying files from `/etc/skel'' Enter new UNIX password: Retype new UNIX password: passwd: password updated successfully Changing the user information for test Enter the new value, or press ENTER for the default Full Name []: test Room Number []: Work Phone []: Home Phone []: Other []: Is the information correct? [y/N] y bible$ sudo deluser --remove-all-files test Looking for files to backup/remove... 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 Removing files... Removing user `test''... done. Best wishes,
Marc Haber
2006-Jan-13 07:33 UTC
Bug#344488: [Adduser-devel] Bug#344488: deluser: Strange "Can''t opendir(/proc/9908/task): No such file or directory" message
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 283Are these always these two PIDs, 9908 and 29082? Can you show me the access rights on the directories in question? Maybe deluser should not descend into virtual file systems like sysfs, procfs, devpts and usbfs? Greetings Marc -- ----------------------------------------------------------------------------- Marc Haber | "I don''t trust Computers. They | Mailadresse im Header Mannheim, Germany | lose things." Winona Ryder | Fon: *49 621 72739834 Nordisch by Nature | How to make an American Quilt | Fax: *49 621 72739835
Kai Hendry
2006-Jan-15 22:50 UTC
Bug#344488: [Adduser-devel] Bug#344488: deluser: Strange "Can''t opendir(/proc/9908/task): No such file or directory" message
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.
Debian Bug Tracking System
2006-Feb-12 20:30 UTC
Processed: Re: Re: [Adduser-devel] Bug#344488: deluser: Strange "Can''t opendir(/proc/9908/task): No such file or directory" message
Processing commands for control@bugs.debian.org:> tags #344488 - moreinfoBug#344488: deluser: Strange "Can''t opendir(/proc/9908/task): No such file or directory" message Tags were: moreinfo Tags removed: moreinfo> retitle #344488 --remove-all-files should not descend into procfs, sysfs et alBug#344488: deluser: Strange "Can''t opendir(/proc/9908/task): No such file or directory" message Changed Bug title.> user adduser@packages.debian.orgSetting user to adduser@packages.debian.org (was mh+debian-packages@zugschlus.de).> usertags #344488 joerg-assignedThere were no usertags set. Usertags are now: joerg-assigned.> thanksStopping processing here. Please contact me if you need assistance. Debian bug tracking system administrator (administrator, Debian Bugs database)
Marc Haber
2006-Feb-12 20:31 UTC
Bug#344488: Re: [Adduser-devel] Bug#344488: deluser: Strange "Can''t opendir(/proc/9908/task): No such file or directory" message
tags #344488 - moreinfo retitle #344488 --remove-all-files should not descend into procfs, sysfs et al user adduser@packages.debian.org usertags #344488 joerg-assigned thanks On Mon, Jan 16, 2006 at 09:45:22AM +1100, Kai Hendry wrote:> On 2006-01-13T08:31+0100 Marc Haber wrote: > > Maybe deluser should not descend into virtual file systems like sysfs, > > procfs, devpts and usbfs? > > That''s probably just it.Agreed. We''ll have that fixed eventually. J?rg, imo, we need a config option like "ignore_fstypes" which is initialized to a regexp like (proc|usbfs|devpts|sysfs). We already read the output of /sbin/mount to determine a list of the mount points, so exclusing certain fstypes should be reasonably easy. Greetings Marc -- ----------------------------------------------------------------------------- Marc Haber | "I don''t trust Computers. They | Mailadresse im Header Mannheim, Germany | lose things." Winona Ryder | Fon: *49 621 72739834 Nordisch by Nature | How to make an American Quilt | Fax: *49 621 72739835