1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Thibor 081005 build - how to enable telnetd at startup

Discussion in 'HyperWRT Firmware' started by SirDracula, Oct 10, 2005.

  1. SirDracula

    SirDracula Network Guru Member

    I would like to have telnetd running when the router is restarted (though it would be nice to have authentication or even run sshd instead -- but that's for a different topic).

    I've added the following to the startup_script NVRAM variable:

    Code:
    startup_script=/sbin/telnetd -l /bin/sh
    It works, but is this the proper way to do it? Or is there some other script that's supposed to be run instead of telnetd directly?

    What does the web interface call to start and stop telnetd? I looked through the asp files quickly but couldn't find anything.

    Thanks.
     
  2. Thibor

    Thibor Super Moderator Staff Member Member

    the method you are using is correct and is the same method as i use. the <INPUT onclick="to_submit(this.form,'start');" type=button value="Start Telnet"> starts the telnet daemon and there is a corresponding entry that stops it. the rest of the coding for that is found in the sources and isn't viewable from the gui.
     
  3. SirDracula

    SirDracula Network Guru Member

    Are there any plans to add authentication support for telnet rather than have it free for all? Better yet, replacing telnetd with sshd would be even better ...

    Thanks.
     
  4. Thibor

    Thibor Super Moderator Staff Member Member

    no plans or intentions, but if you run "/sbin/telnetd" without "-l /bin/sh" i believe you will be asked for a username and password
     
  5. SirDracula

    SirDracula Network Guru Member

    Interesting, but what are the username and password? I tried admin/<password> and root/<password> where <password> is my web interface password and they don't work. Do I have to mess with /etc/passwd or something?

    Thanks.
     
  6. Thibor

    Thibor Super Moderator Staff Member Member

    the username is "root" and the password is the web admin password "admin" is default
     
  7. SirDracula

    SirDracula Network Guru Member

    Well, it doesn't work. My password works OK in the web interface, but not via telnet. Yes, the username that I enter is "root" and I am typing the password correctly.
     
  8. Thibor

    Thibor Super Moderator Staff Member Member

    you're quite right, i just tested what you said
     
  9. none

    none Network Guru Member

    Did anyone find a way to run the telnet daemon with authentication?

    Thanks.
     
  10. Thibor

    Thibor Super Moderator Staff Member Member

    without authentication? it's been that way all along. it's WITH authentication that doesn't work. "/sbin/telnetd -l /bin/sh" in the startup_script.
     
  11. none

    none Network Guru Member

    Actually I am looking to a way to run it with authentication.

    Thanks.
     
  12. Laurentwb

    Laurentwb Network Guru Member

    Hi everybody,

    I just downloaded this release (15-10-2005) but I'm afraid the link is not right. Indeed, after installing (from a version of september), it keeps telling me the following :

    "Firmware Version : v4.70.6_Hyperwrt-2.1b1-(Thibor), Oct. 8, 2005".

    Moreover, I cant enter a TX power higher that 84 mW.

    Would be great that somebody make sure everyting is OK or to replace the file on the server.

    Thanks in advance. :thumbup:


    PS : By the way, I also would like to know what is the client mode.
     
  13. Thibor

    Thibor Super Moderator Staff Member Member

    Client Mode is where the WAN interface is replaced by the Wifi interface.
     

Share This Page