- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- KIll user session in unix
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
тАО11-03-2010 05:18 PM
тАО11-03-2010 05:18 PM
KIll user session in unix
I need help on the command how to check which user is login to the system and kill the user session in unix level.This is because my company is using unix to intergrate with ERP system USers normally do not log out of the system properly and the session is still active.Now i want to know who is active loging to the system and kill the session.Please help
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-03-2010 06:33 PM
тАО11-03-2010 06:33 PM
Re: KIll user session in unix
Check by w command how many users are logged in, then get the pid of that perticular session by following command,
#ps -ef |grep -i pts/XX
XX will be digit no.
then from that output, u will get and PID which is logged in by ssh or telnet at that perticulat pts/XX session.
By killing that pid, session will be end.
Hope this solves ur query.
Dont forget to assign points.
Regards
Vishnu Khandare
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-04-2010 12:46 AM
тАО11-04-2010 12:46 AM
Re: KIll user session in unix
What HP-UX version are you using?
You may have bogus entries in utmp(4) and those may not be removed without rebooting:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-11-2010 11:30 PM
тАО11-11-2010 11:30 PM
Re: KIll user session in unix
Adding to what vishnu said, since subject says "kill user session in unix", after finding active users and process IDs use the command
kill -9 pid. A similar problem arises when you do a usermod and there is an active session open. You use a similar procedure. Hope it helps a bit.
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-12-2010 05:26 AM
тАО11-12-2010 05:26 AM
Re: KIll user session in unix
# who -T
# ps -fu username
rgs,