Logout Other Users By Name


Recommended Posts

I have set up a user account for a friend. He uses my linux box for offsight storage. At night I sync up my two linux boxes. During that time I do not want him logged on. Is their a way to forcefully loghim out of my system using my root account?

Link to post
Share on other sites

Thanks, I like the wall command.

I am still surprised linux being based on unix, a large multiuser system, their is no tool(command) that allows admins to logout users.

Edited by shanenin
Link to post
Share on other sites
Thanks, I like the wall command.

I am still surprised linux being based on unix, a large multiuser system, their is no tool(command) that allows admins to logout users.

for by name you can use the logout command (but may need to play with it)

or if you are going to do maintnance

shutdown -H -t 60 now The system is shutting down

will log out everyone and put the system in init 1 so you can do what you need to do

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...