Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Search Forums:



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 06-05-2002
Registered User
 

Join Date: Mar 2002
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
Question Kicking users off

Hello,

how do i kick users off line.

when i type w i see
Mike pts/0 leg-64 11:28pm 0.00s 0.15s 0.01s w
root pts/1 :0 11:31pm 1:13 0.06s 0.02s vi /etc/ftpaccess

i want to boot Mike offline...how do i do that?

many thanks
Sponsored Links
    #2  
Old 06-06-2002
witt
Guest
 

Posts: n/a
Bits: 0 [Banking]
try :

fuser -k /dev/pts/0


I hope help you...

Witt
Sponsored Links
    #3  
Old 06-06-2002
killerserv's Avatar
Registered User
 

Join Date: Dec 2000
Location: Phoenix, AZ
Posts: 670
Thanks: 0
Thanked 3 Times in 3 Posts
i dunt think so. The -k option only works on processes. If the user is the kernel, fuser will print an advice, but take no action
beyond that. One way (the best way) to kick the user out from the System is to write a script in Csh or Ksh and set it on the root directory. Might help
    #4  
Old 06-06-2002
hassan2 hassan2 is offline Forum Advisor  
Registered User
 

Join Date: Mar 2002
Location: London, England
Posts: 262
Thanks: 0
Thanked 2 Times in 2 Posts
Thumbs up kick user off

try

who -u

this will list users logged on system including their process id(pid) on colume 7


then issue

kill -9 (pid)
Sponsored Links
    #5  
Old 06-06-2002
auswipe's Avatar
auswipe auswipe is offline Forum Advisor  
Registered User
 

Join Date: Nov 2001
Location: Wide Awake Wylie, Texas
Posts: 535
Thanks: 0
Thanked 0 Times in 0 Posts
You could always identify the pid of the shell being used on the terminal and then kill the shell. It's a tad bit abrupt, though.
Sponsored Links
    #6  
Old 06-06-2002
LivinFree's Avatar
Goober Extraordinaire
 

Join Date: Jul 2001
Location: Portland, OR, USA
Posts: 1,626
Thanks: 2
Thanked 15 Times in 13 Posts
Dammit, why does everyone always use kill -9 first? That would bother the hell out of me if you were on my system...

Anyways, depending on the reason (if you wanted everyone out for system maint or backups), you might want to look into going into single-user mode.

If you're just trying to be a jerk, try:

Code:
kill -9 0

Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
do i need these users? csaunders Solaris 3 04-11-2006 01:45 PM
users of a particular dir narsing UNIX for Dummies Questions & Answers 1 02-07-2006 07:34 AM
kicking a telneted user from the system crashnburn UNIX for Dummies Questions & Answers 3 11-01-2002 05:54 AM



All times are GMT -4. The time now is 03:58 AM.