HPE Community read-only access December 15, 2018
This is a maintenance upgrade. You will be able to read articles and posts, but not post or reply.
Hours:
Dec 15, 4:00 am to 10:00 am UTC
Dec 14, 10:00 pm CST to Dec 15, 4:00 am CST
Dec 14, 8:00 pm PST to Dec 15, 2:00 am PST
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.

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)