Visit Our UNIX and Linux User Community


Kicking users off


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Kicking users off
# 1  
Old 06-06-2002
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
# 2  
Old 06-06-2002
try :

fuser -k /dev/pts/0


I hope help you...

Witt
witt
# 3  
Old 06-06-2002
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
MySQL 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)
# 5  
Old 06-06-2002
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.
# 6  
Old 06-06-2002
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

 

Previous Thread | Next Thread
Test Your Knowledge in Computers #179
Difficulty: Easy
The Apple I first went on sale in July 1976 and sold for $666 USD.
True or False?

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Create multiple users with individual passwords to users

hi, i am new to shell scripts i write a shell script to create multiple users but i need to give passwords to that users while creating users, command to write this script (1 Reply)
Discussion started by: DONFOX
1 Replies

2. Red Hat

users cannot switch with "su" to another users

Hi, i have a problem, itīs because users without belonging wheel group cannot switch to another user , when the password is introduced says not right password. The only solution for now is to add them to wheel users, but then i have another problem, they can login as root. Is there any... (3 Replies)
Discussion started by: pabloli150
3 Replies

3. Red Hat

Showing all users in 'users' and 'top' commands

Hi All, I work in a multi user environment where my school uses Red Hat Linux server. When I issue commands such as "top" or "users", I get to see what others are doing and what kinds of applications they are running (even ps -aux will give such information). "users" will let me know who else is... (1 Reply)
Discussion started by: shoaibjameel123
1 Replies

4. Solaris

To restrict the users not to change the passwords for NIS users

Hi All, How to restrict the NIS users not to change their passwords in for NIS users?? and my NIS user is unable to login to at client location what could be the problem for this ? Any body can help me. Thanks in advance. (1 Reply)
Discussion started by: Sharath Kumar
1 Replies

5. HP-UX

Limiting SFTP Users While Not Limiting Regular Users?

Hi, I have searched the web and have come back with nothing that is satisfactory for what I require. SFTP is my corporations new file transfer standard. What I require is a method to lock down SFTP users to their directory (they may go to sub directories) while not restricting regular users. ... (2 Replies)
Discussion started by: Emancipator
2 Replies

6. SCO

SCO console login keeps kicking me back out!! help

OK, I installed a new KVM switch and have 3 IBM servers all running SCO unix attached to it among some other servers... everything works fine except for just one of the SCO servers (all the same hardware) will kick me back out after I login using the console... I will login and it will take me... (4 Replies)
Discussion started by: herot
4 Replies

7. HP-UX

Users

Is there a command to tell what applications certain users ran in past few months? And thier last login? This is on HPUX machine Thanks! (1 Reply)
Discussion started by: catwomen
1 Replies

8. Solaris

do i need these users?

uucp:x:5:5:uucp Admin:/usr/lib/uucp: nuucp:x:9:9:uucp Admin:/var/spool/uucppublic:/usr/lib/uucp/uucico smmsp:x:25:25:SendMail Message Submission Program:/: listen:x:37:4:Network Admin:/usr/net/nls: nobody:x:60001:60001:Nobody:/: noaccess:x:60002:60002:No Access User:/:... (3 Replies)
Discussion started by: csaunders
3 Replies

9. UNIX for Dummies Questions & Answers

kicking a telneted user from the system

hi there, does anyone know how to kick a telneted user from a the system? thx (3 Replies)
Discussion started by: crashnburn
3 Replies

Featured Tech Videos