'rmuser' hangs forever?
sbremal at hotmail.com
sbremal at hotmail.com
Tue Feb 25 09:26:14 UTC 2014
Hello
Desperately want to remove a user:
[root at domain ~]# rmuser -v coworker
Matching password entry:
coworker:*:1003:1003::0:0:User &:/home/coworker:/bin/sh
Is this the entry you wish to remove? yes
Remove user's home directory (/home/coworker)? yes
Removing crontab for (coworker):.
Removing at(1) jobs owned by (coworker): 0 removed.
Removing IPC mechanisms.
Terminating all processes owned by (coworker): -KILL signal sent to 0
processes.
Removing files owned by (coworker) in /tmp: 0 removed.
Removing files owned by (coworker) in /var/tmp: 0 removed.
Removing mail spool(s) for (coworker): /var/mail/coworker.
Removing user (coworker) (including home directory) from the system:yes
... then it hangs forever. A few more details:
[root at domain ~]# fuser /etc/master.passwd /etc/passwd /etc/group /etc/spwd.db
/e
tc/pwd.db
/etc/master.passwd: 2230w
/etc/passwd:
/etc/group: 2230w
/etc/spwd.db:
/etc/pwd.db:
last pid: 2717; load averages: 1.44, 1.32, 1.13 up 0+00:33:07 00:37:20
47 processes: 2 running, 44 sleeping, 1 zombie
CPU: % user, % nice, % system, % interrupt, % idle
Mem: 145M Active, 69M Inact, 57M Wired, 60M Buf, 211M Free
Swap: 1536M Total, 1536M Free
PID USERNAME THR PRI NICE SIZE RES STATE C TIME WCPU COMMAND
2230 root 1 103 0 10244K 1896K CPU1 1 6:06 100.00% pw
This morning the same:
last pid: 5723; load averages: 1.28, 1.27, 1.21 up 0+09:15:16 09:19:29
47 processes: 2 running, 44 sleeping, 1 zombie
CPU: 50.4% user, 0.0% nice, 0.0% system, 0.0% interrupt, 49.6% idle
Mem: 96M Active, 277M Inact, 98M Wired, 9740K Cache, 59M Buf, 956K Free
Swap: 1536M Total, 1536M Free
PID USERNAME THR PRI NICE SIZE RES STATE C TIME WCPU COMMAND
2230 root 1 103 0 10244K 1432K CPU0 0 527:25 100.00% pw
How difficult could it be to remove a user?! ;-)
Cheers
Balazs
More information about the freebsd-bugs
mailing list