shanenin Posted February 3, 2006 Report Share Posted February 3, 2006 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? Quote Link to post Share on other sites
jcl Posted February 3, 2006 Report Share Posted February 3, 2006 You can disable logins (to keep him out) and then kill all of his processes. Quote Link to post Share on other sites
shanenin Posted February 3, 2006 Author Report Share Posted February 3, 2006 (edited) I guess I was hoping for an elegant command. Maybe one that would give the user a warning message. But the suggestion you gave works nice(effective) Edited February 3, 2006 by shanenin Quote Link to post Share on other sites
jcl Posted February 3, 2006 Report Share Posted February 3, 2006 (edited) You can use wall to send a warning message before booting him. Edited February 3, 2006 by jcl Quote Link to post Share on other sites
shanenin Posted February 3, 2006 Author Report Share Posted February 3, 2006 (edited) 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 February 3, 2006 by shanenin Quote Link to post Share on other sites
iccaros Posted February 3, 2006 Report Share Posted February 3, 2006 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 maintnanceshutdown -H -t 60 now The system is shutting downwill log out everyone and put the system in init 1 so you can do what you need to do Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.