- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Kick/kill all users command?
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-08-2004 11:14 PM
тАО12-08-2004 11:14 PM
Kick/kill all users command?
Is there a command I can use to kill all users on RH? Or do I have to run a script to gather all the PIDs, then kill each one wih kill -9?
I need to do a reboot and although that will obviously kill all processes, I was hoping to kill the users first to do some maintenance.
Any feeback greatly welcomed.
Regards,
Rob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-08-2004 11:28 PM
тАО12-08-2004 11:28 PM
Re: Kick/kill all users command?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-08-2004 11:33 PM
тАО12-08-2004 11:33 PM
Re: Kick/kill all users command?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-08-2004 11:41 PM
тАО12-08-2004 11:41 PM
Re: Kick/kill all users command?
try to change to init 1
#init 1
and in the system console make your maintenace before reboot.
This will solve your problem, I guess.
regards,
xyko
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-09-2004 02:21 AM
тАО12-09-2004 02:21 AM
Re: Kick/kill all users command?
Chris
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-10-2004 03:59 AM
тАО12-10-2004 03:59 AM
Re: Kick/kill all users command?
-balaji
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-10-2004 06:36 AM
тАО12-10-2004 06:36 AM
Re: Kick/kill all users command?
I think you know you can shut the road down as root by stop the various services like telnet, ftp http etc.( # service telnetd stop ) that will keep you in multiuser mode if that's what you need to stay.
what i usually do is " #wall " people first, friendly ;-), then go to sigle user mode.
YJ.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-13-2004 12:58 AM
тАО12-13-2004 12:58 AM
Re: Kick/kill all users command?
Here are some scripting guideline for killing all users and thier processes:
1. use "ps -ef" and grep on 6th field (use cut) and get ttynames.
2. ps -t
3. kill -9
Hope that helps.
Regards,