Userdel: user testuser is currently logged in

userdel: user testuser is currently logged in

1 문제상황[ | ]

[admin@localhost ~]$ sudo userdel testuser
userdel: user testuser is currently logged in

2 해결방법[ | ]

[admin@localhost ~]$ ps -ef | grep ^testuser
testuser   877   865  0 17:30 ?        00:00:00 sshd: testuser@pts/8
testuser   878   877  0 17:30 pts/8    00:00:00 -bash
testuser 27993 27924  0 19:01 ?        00:00:00 sshd: testuser@notty
testuser 27994 27993  0 19:01 ?        00:00:00 /usr/libexec/openssh/sftp-server
testuser 31000 30994  0 17:22 ?        00:00:00 sshd: testuser@notty
testuser 31001 31000  0 17:22 ?        00:00:00 /usr/libexec/openssh/sftp-server
testuser 31950 31932  0 17:25 ?        00:00:00 sshd: testuser@pts/7
testuser 31951 31950  0 17:25 pts/7    00:00:00 -bash
testuser 32697 32670  0 17:28 ?        00:00:00 sshd: testuser@pts/6
testuser 32698 32697  0 17:28 pts/6    00:00:00 -bash
[admin@localhost ~]$ ps -ef | grep ^testuser | awk '{print $2}' | sudo xargs kill -9
kill 27994: No such process
kill 31001: No such process
kill 32698: No such process
[admin@localhost ~]$ ps -ef | grep ^testuser
[admin@localhost ~]$ sudo userdel testuser
[admin@localhost ~]$

3 같이 보기[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}