Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

phantom user??

Status
Not open for further replies.
May 19, 2003
2
US
Hi All,

I'm running AIX v. 4 and when I run the
Code:
who
command from the shell, I get my own account and another that I'd like to log off.

So, in prepartion for the kill command, I first lookup any processes running for this user by running:

Code:
ps -ef |grep mb1
(mb1 is the user in question)

And here is the output:
Code:
/u/dv2/c01file> $ who                                     
jpm         pts/2       May 19 22:50    (192.168.128.16)  
mb1         pts/17      May 13 09:47    (192.168.128.23)  
/u/dv2/c01file> $ ps -ef |grep mb1                        
     jpm 14588 13046   1 22:54:04  pts/3  0:00 grep mb1   
/u/dv2/c01file> $
So...the only process I'm seeing is my own, piping the grep command. So now what?!?!?

Any help or suggestions are greatly appreciated!!
Thanks,
Joel
 
Use "ps -u mb1" to get the pid and then kill the process.

Best Regards,
vivek
 
Hi,
try to go /var/adm
and do
# > wtmp
Regards Boris
 
In this case, ps -ef | grep pts/17 will give you the process info you need. You would want to kill the process that has the -ksh or -sh (or whatever shell the user is using). You need to grep on the terminal the user is on.

 
The problem mysteriously ironed itself out before I was able to attempt any of the methods suggested. I'll be sure to save the responses so that I can give them a try the next time this problem rears its ugly head. Thanks vivek, boris and bi for your help!!!

-Joel-
 
here is the "murderous rampage" version:

su - mb1 -c "kill -9 -1"

that fixes almost everything, however it is like getting gum off of your shoe by tossing the whole shoe away.

IBM Certified -- AIX 4.3 Obfuscation
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top