LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Security (https://www.linuxquestions.org/questions/linux-security-4/)
-   -   User log out as Root (https://www.linuxquestions.org/questions/linux-security-4/user-log-out-as-root-450447/)

5577 06-01-2006 01:26 AM

User log out as Root
 
Hallo,
is it possible to log out User as root ?
We have got a server with a lot of user working on it. It can be, that one user makes strangely things on the server. I am root and see it, now i would kick down the user. How can i do that?

acid_kewpie 06-01-2006 01:47 AM

not the best wording for a question but if you want to force a user to log out, personally i would just kill their login shell and it will all fall to pieces for them. use "ps axu" to find their first "bash" entry and then use the kill command to nuke it.

Wim Sturkenboom 06-01-2006 02:58 AM

It would be nice to send a message first, so he/she can save his work.

acid_kewpie 06-01-2006 03:09 AM

where's the fun in that?

Wim Sturkenboom 06-01-2006 03:44 AM

you will be logged out in 0 seconds; please save your work or changes will be lost :D

osor 06-01-2006 08:41 AM

Quote:

Originally Posted by Wim Sturkenboom
It would be nice to send a message first, so he/she can save his work.

look at
Code:

man write


All times are GMT -5. The time now is 10:14 PM.