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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to kill user console? 1

Status
Not open for further replies.

Cap2010

Programmer
Mar 29, 2000
196
CA
hi,

The user had entered the sun system using
windows telnet and accidently has closed the
telnet by clicking on windows close button.
without exiting from the session from the sun
Sun still shows the activity open
when giving who command.

want to kill those session how to.

thanks,

cap
 
First get the processes belonging to the user

ps -fu username

Then kill the processes

kill pid1 pid2 etc etc

If this doesnt work use kill -9
 
ps -fu $username|grep sh

This will give the person's shell. Just kill the PID.
 
HI,

Now, actually the user has logged in as root from
different terminal. One way is to reboot. don't want to do that.

when i give the command who getting message like below.

root pts/8 some date time :)0)
root pts/2 some date time (renlod)
root pts/10 some date time (101.125.112.10)


pts2 and pts/10 has no process only login active.

how to kill those.

thanks

captain
 
ps -ef | grep pts/2 | grep sh

Then use the kill commands as suggested above, and repeat for pts/10.

Steve
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top