root and ttyp ??????

root and ttyp ??????

Post by Larry Clar » Fri, 27 Aug 1999 04:00:00



ok I have in my who window a root as ttyp0 and root as ttyp1......who is
the other one and how can I kick someone out if they are in as root?
thansk.....
--
|===============================================================|
| \\   //                                                       |
|  \\ //                                                        |
|   \V/                               __                        |
|   /^\ \\   /\   // || ||\  ||||\\ ||  ||\\   /\   // //       |
|  // \\ \\ //\\ //  || ||\\ |||| }}||  || \\ //\\ // //==      |
| //   \\ \V/  \V/   || || \\||||// ||__||  \V/  \V/    // USER.|
|===============================================================|
---------------

---------------
Klicq# 20846428
 
 
 

root and ttyp ??????

Post by Henrik Carlqvis » Fri, 17 Sep 1999 04:00:00



> ok I have in my who window a root as ttyp0 and root as ttyp1......who
> is the other one

You will be able to at which tty you are with the command "tty". The
other one is the other tty :-).

Quote:> and how can I kick someone out if they are in as root?

You will be able to kill processes owned by root if you are root. First
you will need to see which processes are at the other tty, example:

fuser /dev/ttyp1

/dev/ttyp1:            301

If you check with ps -aux you will most likely find that pid 301 is a
shell. Then you will be able to kick out the other user with something
like:

kill -9 301

regards Henrik
--
spammer strikeback: