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

Disconnect a user

Status
Not open for further replies.

aixahole

Technical User
Aug 6, 2002
1
0
0
US
Is it possible to disconnect a user listed under the who command:

aixbox:/usr: who
freak lft0 Aug 05 10:20
freak pts/0 Aug 05 10:20 :)0.0)
freak pts/1 Aug 05 10:20 :)0.0)
iamsam pts/2 Aug 05 10:26 (10.88.5.28)
iamsam pts/4 Aug 05 11:46 (10.88.5.110)
iamsam pts/5 Aug 06 08:40 (10.88.5.26)

For example, how could you disconnect everybody lkogged in as iamsam? And, how could you disconnect just 10.88.5.26?

Thanks,
AIX AHOLE
 
try command who -u | more this will give you the PID. Then type kill PID like kill 130023 or something. Or you can type ps -ef | grep iamsam then kill PID for user iamsam.
 
find the pid asscoiated with the pts/? and do a kill on the pid. Also, you might try pdisable pts/?, although I think you might only be able to use pdisable on a tty and not on a pseudo term.
 
ps -t ${TTY} will give you a list of processes that are attached to a given tty or pseudo.
 
Does your users start with a particular shell? Learn something everyday or you wasted a day of your life.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top