- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Fastest Way to Force Log Off Users and Their P...
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
Forums
Discussions
Discussions
Discussions
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
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
11-29-2007 06:25 AM
11-29-2007 06:25 AM
Fastest Way to Force Log Off Users and Their Processes
killall?
init 1
whodo
Por Favori?
Am writing a Poor Man's Failover procedure wherein a currently running server takes on the role of another w/o needing a reboot. All Security settings (tcb, passwd, group) and configs, storage are brought-in/migrated sans a reboot.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-29-2007 06:31 AM
11-29-2007 06:31 AM
Re: Fastest Way to Force Log Off Users and Their Processes
perhaps:
# fuser -ku mountpoint
...or:
# fuser -ku /dev/dsk/cXtYdZ
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-29-2007 06:36 AM
11-29-2007 06:36 AM
Re: Fastest Way to Force Log Off Users and Their Processes
But I'd want something done prior to my looper that kills processes hooked on them mount points and unmounts the filesystems.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-29-2007 06:46 AM
11-29-2007 06:46 AM
Re: Fastest Way to Force Log Off Users and Their Processes
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-29-2007 06:55 AM
11-29-2007 06:55 AM
Re: Fastest Way to Force Log Off Users and Their Processes
If you wanted to compose a list of 'pids' that don't belong to root:
# PIDS=$(UNIX95= ps -e -o uid= -o pid=|awk '$1!~/^0$/ {print $1}')
# kill ${PIDS}
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-29-2007 08:08 AM
11-29-2007 08:08 AM
Re: Fastest Way to Force Log Off Users and Their Processes
/sbin/init.d/net stop ; sleep 60 ; /sbin/init.d/net start
Course, how to stop them from logging back on?
cp -p /etc/passwd /etc/passwd.bak
passwd -l $user
Rgds...Geoff