How to Disable Telnet Published: Mar 14, 2004
  • Rating

    2/5

There were some problems with Apache early this morning (1am) that I didn’t catch until about 6am today.

If you tried to access the site
then, you couldn’t =) The semaphore were full, I’ve never run into this
problem before. Every time I tried to start Apache it would error out
disk was out of space.

warn pid file /usr/local/apache/logs/httpd.pid overwritten — Unclean
shutdown of previous Apache run?
semget: No space left on device

I checked the space and log file sizes, all were fine. Thankfully I
managed to find a nice script on cpanel forums that helped me get things
back to normal once again.

#!/bin/bash

ipcs -s | grep nobody | perl -e ‘while () {
@a=split(/\s+/); print `ipcrm sem $a[1]`}’

/scripts/restartsrv httpd

Cheers

Steve

  • Rating

    2/5

Related Articles

Comments (7)

  • Gravatar - Bit
    Bit 13:51, January 24, 2006
    pico /etc/xinetd.d/telnet<br />
    <br />
    file empty
  • Gravatar - Artin
    Artin 12:06, March 15, 2006
    in Centos 4 you should modify this file :<br />
    /etc/xinetd.d/krb5-telnet
  • Gravatar - Damas
    Damas 22:36, March 19, 2006
    pico /etc/xinetd.d/telnet<br />
    <br />
    file empty <br />
    <br />
    the same problem<br />
    <br />
  • Gravatar - Felipe D.
    Felipe D. 00:23, April 19, 2006
    on CentOS is:<br />
    /etc/xinetd.d/krb5-telnet
  • Gravatar - Rico
    Rico 16:10, August 29, 2006
    I don't know how to log in to my server to disable my telnet. Please advise.
  • Gravatar - Jonathan
    Jonathan 00:22, September 20, 2006
    This is what I see in nano /etc/xinetd.d/krb5-telnet<br />
    <br />
    # default: off<br />
    # description: The kerberized telnet server accepts normal telnet sessions, \<br />
    # but can also use Kerberos 5 authentication.<br />
    service telnet<br />
    {<br />
    flags = REUSE<br />
    socket_type = stream<br />
    wait = no<br />
    user = root<br />
    server = /usr/kerberos/sbin/telnetd<br />
    log_on_failure += USERID<br />
    disable = yes<br />
    }<br />
    <br />
    What Im suppost to change there?
  • Gravatar - Sinan
    Sinan 22:46, October 17, 2006
    on centOS, telnet is disabled by default.

Add Your Thoughts

WebHostGear.com is a hosting directory, not a web host.

Copyright © 1998-2023 WebHostGear.com