LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   conscole closing (https://www.linuxquestions.org/questions/linux-newbie-8/conscole-closing-20659/)

NetScripter 05-10-2002 12:37 PM

conscole closing
 
How can I close another console from my current one?
For example when I do 'w':
9:23pm up 28 days, 4:59, 2 users, load average: 0.59, 0.34, 0.13
USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT
sasha pts/0 voltran.atomnet. 9:19pm 1.00s 0.08s 0.02s w
root pts/4 - Mon12pm 4days 0.02s 0.02s /bin/cat

I need to logout root via telnet
Help please

Rashkae 05-10-2002 04:09 PM

Kill a user remotely.
 
You have to su to root,

ps -e | grep 'pts/4'

kill the first process listed, (which is probably bash)

NetScripter 05-10-2002 11:59 PM

thanks a lot

Rashkae 05-13-2002 08:09 AM

Su to root
 
I forgot to mention that SU'ing to root in telnet is very insecure since your transmitting the root password in plain text. This can be a problem is any of the two computers are on an unsecure ethernet (Untrusted nodes, wireless, using someone else's computer, spyware.. you name it). You should really install ssh to do remote administrative tasks.

NetScripter 05-13-2002 12:27 PM

ok, but there was a hack of my server due to security hole in ssh.
So i turned it off

Rashkae 05-13-2002 01:07 PM

As usual, keeping up to date with Service releases for your Distro is critically important. Suggest subscribing to your Distro's security mailing list and always update packages when a security update is announced.. It's very unlikely that you will be hacked if you update within 24 hrs of a service pack. I would be hard pressed to remember a Linux security hole that was widely exploited before the software was patched and security announcements made.

Note: Redhat tends to have a somewhat higher update requirement than most other distros. The price of cutting edge software seems to be frequest updates.


All times are GMT -5. The time now is 02:38 AM.