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
06-04-2003 06:50 PM
06-04-2003 06:50 PM
show by who-u. I use kill -9 process_id, but the message will show process_id is not exist.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-04-2003 07:02 PM
06-04-2003 07:02 PM
Re: who -u
1. "who -u" to find out who you want to kill:
$ who -u
dba pts/0 Jun 5 09:33 1:10 6749 192.168.0.122
2. "ps -ef |grep sh" to find out which sh process associated with the pts/0:
$ ps -ef |grep sh
dba 6749 6747 0 09:33:33 pts/0 0:00 -sh
3. you may now kill the sh process 6749:
$ kill -9 6749
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-04-2003 07:05 PM
06-04-2003 07:05 PM
SolutionConvert the file to ascii
#/usr/sbin/acct/fwtmp < /etc/utmp >/tmp/file
edit the file and remove the corresponding entry for that user and his corresponding tty.
Then can convert it back to binary form:
# /usr/sbin/acct/fwtmp -ic < /tmp/file > /etc/utmp
Regards
Michael
"When I have trouble spelling, it's called fat finger syndrome"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-04-2003 07:06 PM
06-04-2003 07:06 PM
Re: who -u
BTW - kill -9 should ONLY be used IF a normal kill....
kill PID
or
kill -15 PID
have no effect.
kill -9 can leave unreturned memory, msg or semaphore entries that will not be reaped w/o intervention.
MORAL: kill cleanly or silently or don't kill at all.
Rgds,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-04-2003 07:46 PM
06-04-2003 07:46 PM
Re: who -u
You can use "ps -t pts/0" to see what the user's running processes,and kill the process id by kill -9.
Regards
snop