cancel
Showing results for 
Search instead for 
Did you mean: 

Drop the User at Unix Level

Eric Jacklin
Regular Advisor

Drop the User at Unix Level

Hi

Would you please suggest me how should i drop the user which is currently login in the system.

4 REPLIES
Adam W.
Valued Contributor

Re: Drop the User at Unix Level

umm kill the pid.
There are two types of people in the world, Marines and those who wish they were.
Adam W.
Valued Contributor

Re: Drop the User at Unix Level

do a who -u to find the users pid and kill it.
There are two types of people in the world, Marines and those who wish they were.
Dennis Handly
Acclaimed Contributor

Re: Drop the User at Unix Level

You can find all of the PIDs by:
UNIX95=EXTENDED_PS ps -Hfu user-name

And you can turn this into a kill command.
Laurent Menase
Honored Contributor

Re: Drop the User at Unix Level

using its pty and fuser
# who
toto pts/ta Dec 31 11:43
root pts/tb Dec 31 11:39
# ps -aef |grep pts/ta
root 25118 1482 0 11:39:23 pts/ta 0:00 telnetd -b /etc/issue
toto 25119 25118 0 11:39:23 pts/ta 0:00 -sh
# fuser -k /dev/pts/ta
/dev/pts/tb: 25119o(toto)