kill user session

how do i kill a user session

try

man kill

first locate the process, for example, user logged in using ssh .

ps -ef | grep ssh

then, get the pid and kill the process .

That's it.

Regards,

Fernando.

man pkill

[message too short]

who -u

will show the pid of the login process. Killing that process would log the user out, however you may also need to cleanup an child processes, which could continue to run without the parent if they ignore SIGHUP.

only add command
after you get who login to the system
kill -9 <pid>

thx

Never use kill -9 on a process as a first resort.

are ytou sure bro?

I don't understand this.

Could you please rephrase what you have written ?

(9) Edit your posts if you see spelling or grammar errors (don't write in cyberchat or cyberpunk style). English only.

Please read the rules of the forum ! :slight_smile:

sory, I make some mistake

i mean " are you sure brother?"

thank's

Yes, and you think I am wrong maybe you should do a search of this site and find where I and many others have explained why this is the case. Also a websearch and any number of Unix books will also give you this information.