컴퓨터 공학도의 삶

[CentOS] 접속중인 사용자나 세션을 강제로 접속 끊기

Acu 2011. 8. 9. 21:22

//접속자 확인하기

[root@localhost ~]# who

root     tty1         2011-08-09 09:50

root     tty2         2011-08-09 09:50

root     pts/0        2011-08-10 06:09 (123.123.123.123)


//해당 계정의 모든 세션 끊기

[root@localhost ~]# skill -KILL username


//특정 세션만 끊기

[root@localhost ~]# skill -KILL -v pts/?