0
INDEX
Obtenir la liste des users
Commande w
:
USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT user pts/0 78.193.78.188 Sat20 6:32m 2.81s 2.20s sshd: user [priv] user pts/1 78.193.78.188 Sat22 27:39m 1.85s 2.15s sshd: user [priv] user pts/2 78.193.78.188 Tue11 27:31m 0.22s 0.97s sshd: user [priv]
Récupérer le pID de la connexion
ps aux| grep pts/0 root 3592 0.0 0.0 4656 1000 pts/0 R+ 17:23 0:00 ps aux user 3593 0.0 0.0 4196 736 pts/0 S+ 17:23 0:00 grep pts/0 500 20897 0.0 0.0 12232 1776 ? S 16:26 0:00 sshd: user@pts/0
Killer la session de l’utilisateur
kill -9 <pID>
DATE 12 Mar 2014