Solved how to kick out login user in freebsd 14.2 ?

Dear all:
i have know some users login my freebsd14.2 from ttyv(x) or pts/(x) ....i want to kick out some login user immediately from my freebsd14.2 . how to do it ? thanks. i have search some way from internet in below. what is best way ? thanks.

1. kill -u username
2. pkill -kill -t ttyv(x)or pts/(x)

i want to kill the user(aaaa) login from ttyv(x) , and keep the same login user(aaaa) in pts/(x) .. how to do it ? thanks.
 
Just kill the shell associated with that user and terminal, that'll log them out.
Dear sirdice:
one user login the gnome-session. how to force this user logout from gnome-session ?
Code:
game@work1:~ $ who -u 
game             ttyv8        Jan  3 08:31 00:43 (:0)
game             pts/0        Jan  3 09:12   .   (192.168.200.3)

i just want to kill game in ttyv8 , this guy use gnome-session login. and keep game in pts/0 ...

kill -u game is not work for me .
pkill -kill -t ttyv8 is not work for me .

thanks.
 
Aaaa! Finish him/her! No mercy (revoke(1)):​
Bash:
revoke /dev/ttyv4 # as root, change ttyv4 as appropriate
And set up, for instance, a login.access(5) file to prevent further logins on ttyv*.​
Dear kai burghardt:
thanks for your help. but , this command is not work.
the ttyv8 running gnome-session ..
Code:
game@work1:~ $ who -u
game ttyv8 Jan 3 08:31 00:43 (:0)
game pts/0 Jan 3 09:12 . (192.168.200.3)
when i run revoke /dev/ttyv8 . nothing happened . thanks.
 
Dear all :
problem was remove :
1. who or w command will show which user logining at ttyvx
2. pkill -kill -t ttyvx (which one you want )
thanks.
 
Back
Top