- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- how remove "old" session in HP-UX 10.20
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
Forums
Discussions
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
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
05-07-2001 01:43 AM
05-07-2001 01:43 AM
emanc ttypc May 4 09:53 old 19333 194.63.3.172
but if i look for "ps -u emanc" i don't find any process associated to this users.
How can i eliminate this "old" session?
Thank You
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-07-2001 01:56 AM
05-07-2001 01:56 AM
Re: how remove "old" session in HP-UX 10.20
You can try to kill all the process associated to the terminal ttypc. So, you must run the command:
ps -ef | grep ttypc
and kill all the process associated with ttypc. Then, the session must be close.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-07-2001 02:00 AM
05-07-2001 02:00 AM
Re: how remove "old" session in HP-UX 10.20
the easiest way is to kill the process that appears with the "who -u" command.
in this particular case you would just need to "kill 19333"
good luck.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-07-2001 03:04 AM
05-07-2001 03:04 AM
Re: how remove "old" session in HP-UX 10.20
The ttypc don't have any process active...
the process 19333 doesn't exist!!!!
(kill -9 19333 returns :"kill: 19333: no such process")
This user is like a zombie :-)!!!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-07-2001 03:39 AM
05-07-2001 03:39 AM
Re: how remove "old" session in HP-UX 10.20
1. "edit" the file /etc/utmp, and change the entry of your "zombie user" (it is a binary file, but it has a well defined structure, so you can write a short c-program to read/change the entries, or you can download it from several sites)
2. move/remove/"truncate" the file /etc/utmp. This will have effect on other users' login data, so this isn't the best solution. But if you (root) are the only user logged in, then it should work.
Laszlo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-07-2001 07:39 AM
05-07-2001 07:39 AM
Re: how remove "old" session in HP-UX 10.20
Why?
Where i could find a program that clean my system?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-07-2001 11:30 AM
05-07-2001 11:30 AM
SolutionTry to do as follows:
1. /usr/sbin/acct/fwtmp < /etc/utmp >/temporary_file
2. vi /temporary_file
and remove old unnecessary login info
3. /usr/sbin/acct/fwtmp -ic < /temporary_file > /etc/utmp
Of course you can use sed or awk instead vi.
I do not remember at the moment if you need to do the same with /var/adm/wtmp file. Must check.
Hope this helps.
Rgds.