#skill -KILL -u user1 kill and logout user1.
#skill -CONT -u user1 recovery user1.
In the default Windows 2003 case, not more than three on the remote, the people must be forced to log logged kicked out. Right log out other online user>, you have not thought about how to implement it on Linux - the user has logged in, through Task Manager -> user.
To view the online user with w.
goface ~ # w
11:53:14 up 53 min, 3 users, load average: 0.00, 0.01, 0.05
USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT
root pts/0 192.168.1.8 11:11 0.00s 0.51s 0.02s w
goface tty7 :0 11:11 53:25 42.50s 0.23s gnome-session –session=classic-gnome
root pts/1 192.168.1.8 11:38 14:53 0.37s 0.37s -bash
So how other people play in the past, huh, huh.
#pkill -kill -t tty
#pkill -kill -t pts/1
W again and found the other connection terminal is kicked, Oh.
Alternatively, you can use the skill command. Such as
#skill -KILL -t pts / 1 can achieve the same effect.
#skill -STOP -u user1
#skill -KILL -u user1 kill and logout user1.
Of course ps grep to find the process of killing can be achieved, but not easy to use the above command.
#skill -KILL -u user1 kill and logout user1.
#skill -CONT -u user1 recovery user1.
In the default Windows 2003 case, not more than three on the remote, the people must be forced to log logged kicked out. Right log out other online user>, you have not thought about how to implement it on Linux - the user has logged in, through Task Manager -> user.
To view the online user with w.
goface ~ # w
11:53:14 up 53 min, 3 users, load average: 0.00, 0.01, 0.05
USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT
root pts/0 192.168.1.8 11:11 0.00s 0.51s 0.02s w
goface tty7 :0 11:11 53:25 42.50s 0.23s gnome-session –session=classic-gnome
root pts/1 192.168.1.8 11:38 14:53 0.37s 0.37s -bash
So how other people play in the past, huh, huh.
#pkill -kill -t tty
#pkill -kill -t pts/1
W again and found the other connection terminal is kicked, Oh.
Alternatively, you can use the skill command. Such as
#skill -KILL -t pts / 1 can achieve the same effect.
#skill -STOP -u user1
#skill -KILL -u user1 kill and logout user1.
Of course ps grep to find the process of killing can be achieved, but not easy to use the above command.