To forcibly "kick" a user (log them out), we use the pkill command:
# pkill -u username
where you substitute the actual username for username.
You can see the current users with the who command:
# who
P.S. At the same time, on FreeBSD you remain logged in yourself, even if you specified yourself as the username argument. On Linux, however, if you kick yourself out, all sessions get closed, including the one you ran this command from.
Comments