solaris 删除用户报错 UX: userdel: ERROR: dave is in use. Cannot remove it.

bash-3.00# userdel -r dave
UX: userdel: ERROR: dave is in use.  Cannot remove it.

注:如果该用户正在连接,是删不掉的,我们可以先kill 掉该用户。 在删。
# who
root       console       3月 18日 10:06 (:0)
dave       pts/2         3月 18日 10:19 (10.85.10.80)
root       pts/4         3月 18日  10:07 (:0.0)
#ps -t pts/2
  PID TTY         TIME CMD
  1118 pts/2       0:00 ps
  1112 pts/2       0:00 bash
#kill -9 1118
#kill -9 1112
# who
root       console       3月 18日 10:06 (:0)
root       pts/4         3月 18日  10:07 (:0.0)
参考:
http://blog.csdn.net/tianlesoftware/archive/2010/03/18/5392539.aspx

猜你喜欢

转载自michales003.iteye.com/blog/1458963