Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 25 Feb 2014 09:26:12 +0000
From:      <sbremal@hotmail.com>
To:        "freebsd-bugs@freebsd.org" <freebsd-bugs@freebsd.org>
Subject:   'rmuser' hangs forever?
Message-ID:  <DUB126-W136653B243EC464D299F4FA9810@phx.gbl>

next in thread | raw e-mail | index | archive | help
Hello

Desperately want to remove a user:

[root@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@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=3B  load averages:  1.44=2C  1.32=2C  1.13    up 0+00:33:07=
  00:37:20=20
47 processes:  2 running=2C 44 sleeping=2C 1 zombie
CPU:     % user=2C     % nice=2C     % system=2C     % interrupt=2C     % i=
dle
Mem: 145M Active=2C 69M Inact=2C 57M Wired=2C 60M Buf=2C 211M Free
Swap: 1536M Total=2C 1536M Free
  PID USERNAME    THR PRI NICE   SIZE    RES STATE   C   TIME    WCPU COMMA=
ND
 2230 root          1 103    0 10244K  1896K CPU1    1   6:06 100.00% pw

This morning the same:

last pid:  5723=3B  load averages:  1.28=2C  1.27=2C  1.21    up 0+09:15:16=
  09:19:29=20
47 processes:  2 running=2C 44 sleeping=2C 1 zombie
CPU: 50.4% user=2C  0.0% nice=2C  0.0% system=2C  0.0% interrupt=2C 49.6% i=
dle
Mem: 96M Active=2C 277M Inact=2C 98M Wired=2C 9740K Cache=2C 59M Buf=2C 956=
K Free
Swap: 1536M Total=2C 1536M Free
  PID USERNAME    THR PRI NICE   SIZE    RES STATE   C   TIME    WCPU COMMA=
ND
 2230 root          1 103    0 10244K  1432K CPU0    0 527:25 100.00% pw

How difficult could it be to remove a user?! =3B-)


Cheers
Balazs
 		 	   		  =



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?DUB126-W136653B243EC464D299F4FA9810>