- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: who to disconnect user session
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
07-30-2004 09:04 PM
07-30-2004 09:04 PM
who to disconnect user session
I am having list of users connected to the
system, and I want to kill their session
but if I do ps it doesnt lists their sh
PID is there any command through which I can
kill their login session MIGHT BE USEFULL
WHEN SOMEBODY LOGINS AS ROOT FROM NETWORK
Thanks,
Amit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-30-2004 10:04 PM
07-30-2004 10:04 PM
Re: who to disconnect user session
#ps -ef
the seond field is the PID
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-30-2004 10:10 PM
07-30-2004 10:10 PM
Re: who to disconnect user session
I'm not sure that you must be so severe with your users 8 ))).
In any case, the command
who -T
if you run it as root gives you PID of parent users' shell.
You can cneck the last field of the output, which gives the terminal of the session.
HTH
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-30-2004 11:20 PM
07-30-2004 11:20 PM
Re: who to disconnect user session
Collect the terminal informations using ps as
ps -t
It will list out process related to that user login
kill -9
That is all.
-- Muthu --
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-31-2004 12:02 AM
07-31-2004 12:02 AM
Re: who to disconnect user session
Use "who" command to find out list of users logged in then you can list the process owned by the user with the following command
#ps -eaf|grep amit
here amit is the user. Then you can kill all the process for the related user. If any user logged in thought network the see the tty for that user and againg list the process and kill those process. In case of root you can distiguish by the tty. This way you can kill all the logged in users and their process. In case
Gaurav