- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- How to logout a user remotely from root
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
тАО09-06-2007 06:20 PM
тАО09-06-2007 06:20 PM
How to logout a user remotely from root
Intrussion Detected !!!!
You have already LOGGED IN from a different Machine
SORRY your User Id cannot be shared from different machines
I have checked the login using finger and command , the login is displaying and I tried to kill it . I got the PID of the users shell
by using who -uH command .
but if i give kill -9
kill: 13823: no such process
Please let me know how to kill the this login session in hp-ux.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-06-2007 06:26 PM
тАО09-06-2007 06:26 PM
Re: How to logout a user remotely from root
ex: fuser -k /dev/pts/4
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-06-2007 06:33 PM
тАО09-06-2007 06:33 PM
Re: How to logout a user remotely from root
/dev/pts/tb:
Its not working for me
still login exists
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-06-2007 06:45 PM
тАО09-06-2007 06:45 PM
Re: How to logout a user remotely from root
/dev/pts/tb: 13374o 13339o 13401o
$fuser -k /dev/pts/tb
/dev/pts/tb:
but still the login shows and I am unable to login using the same.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-06-2007 06:45 PM
тАО09-06-2007 06:45 PM
Re: How to logout a user remotely from root
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1149632
To find all user processes, see your other thread:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1159096
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-06-2007 06:50 PM
тАО09-06-2007 06:50 PM
Re: How to logout a user remotely from root
Intrussion Detected !!!!
You have already LOGGED IN from a different Machine
SORRY your User Id cannot be shared from different machines
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-06-2007 06:54 PM
тАО09-06-2007 06:54 PM
Re: How to logout a user remotely from root
If you looked at the links that point to last(1), you will have to clean up wtmps.
The tool that is giving you "Intrussion Detected" is gullible and relying on fragile info.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-06-2007 08:07 PM
тАО09-06-2007 08:07 PM
Re: How to logout a user remotely from root
"intrussion Detected!!!" ? HPUX error message is intruder Alert
Are you using HIDS ? Or you wrote the script to control only 1 uid allow to login into system once.
WK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-06-2007 08:54 PM
тАО09-06-2007 08:54 PM
Re: How to logout a user remotely from root
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-06-2007 09:21 PM
тАО09-06-2007 09:21 PM
Re: How to logout a user remotely from root
kill -9 $(echo $(ps -fu
After that, try "ps -fu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-06-2007 09:26 PM
тАО09-06-2007 09:26 PM
Re: How to logout a user remotely from root
With the -fu option, the input for the kill-command contains "PID" from the ps output header. With the grep, you can get reid of this header.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-06-2007 09:38 PM
тАО09-06-2007 09:38 PM
Re: How to logout a user remotely from root
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-07-2007 10:30 AM
тАО09-07-2007 10:30 AM
Re: How to logout a user remotely from root
Why are you using echo? It works without it.
>Wim: Small mistake, use "ps -ef | grep
You don't want to use grep with kill -9 and kill someone running
Or worse, yourself using ps -fe | grep ... ;-)
>With the -fu option, the input for the kill-command contains "PID" from the ps output header.
Simple, safer fix:
kill -9 $(ps -fu
>Awadhesh: I can guess that there should be some session file on server for particular user. user cant login till the file exits.
It's possible but shabi's first messages showed who(1. Since who isn't accurate, I'm assuming that's the problem, not this sentinel file.
Basically if who says the user is logged on but ps -fu user doesn't, then it is a wtmp problem.