Re: Want telnetd to execute different program than default (/bin/login)

From: Robert Heller (heller_at_deepsoft.com)
Date: 10/23/04


Date: Sat, 23 Oct 2004 21:50:54 +0200


  wb0gaz@hotmail.com (wb0gaz),
  In a message on 23 Oct 2004 11:00:24 -0700, wrote :

w> I would like my fedora core 1 system to execute a program other than
w> /bin/login when accepting an incoming session.
w>
w> When I change the entry in /etc/xinetd.d/telnet to furnish the command
w> line parameter I believe is needed to execute a program other than
w> /bin/login (based on telnetd manpage), I get an error message in
w> /var/log/messages telling me that the parameter can only have one
w> entry.
w>
w> Current entry in /etc/xinetd.d/telnet is as follows:
w>
w> server = /usr/sbin/in.telnetd
w>
w> When I tried changing it to
w>
w> server = /usr/sbin/in.telnetd -L /someotherprogram

        server = /usr/sbin/in.telnetd
        server_args = -L /someotherprogram

I don't something else with my /etc/xinetd.d/telnet:

sauron.deepsoft.com% less -X /etc/xinetd.d/telnet
# default: on
# description: The telnet server serves telnet sessions; it uses \
# unencrypted username/password pairs for authentication. \
# (On this machine, however, telnet has been coopted by ssh.)
service telnet
# have to call it telnet to get the port, or change /etc/services)
{
        flags = REUSE
        socket_type = stream
        wait = no
        instances = 3 # prevent excessive multiple usage
        user = root
# we use this as an emergency SSH entrance
# server = /usr/sbin/in.telnetd
        server = /usr/sbin/sshd
        server_args = -g 1200 -i -d -d -d
        log_on_failure += HOST USERID
        log_on_success += HOST USERID DURATION
        disable = no
        only_from = 192.168.10.{5,6,7}
}

This is an 'emergency' (SSH) entrance to my desktop from my laptop or
printserver via my LAN, should something bad happen to my video card
and/or keyboard (my video card was being flakey and did finally die --
I have since replaced it).

w>
w> I got this error message:
w>
w> xinetd[15352]: attribute server expects 1 values and 3 values were
w> specified [file=/etc/xinetd.d/telnet] [line=10]
w>
w> I tried enclosing the server argument in quotes:
w>
w> server = "/usr/sbin/in.telnetd -L /someotherprogram"
w>
w> and that did not succeed.
w>
w> It appears that telnetd behavior cannot be controlled by a ".rc" file
w> or environment variables, only command line parameters.
w>
w> I would appreciate a pointer in the right direction.
w>
w> Tks,
w>
w> wb0gaz@hotmail.com
w>

                                     \/
Robert Heller ||InterNet: heller@cs.umass.edu
http://vis-www.cs.umass.edu/~heller || heller@deepsoft.com
http://www.deepsoft.com /\FidoNet: 1:321/153

                                                                                         



Relevant Pages

  • Re: inetd to take telnet request
    ... flavours of TELNET here - so I read on. ... I know about INETD only from long ago with the RS/6000 UNIX, ... server applications" in the CS IP Configuration Guide: ...
    (bit.listserv.ibm-main)
  • Re: Product for Running Embedded C# Application
    ... Telnet sessions or Web sessions with our Web server on the device and a lot ... There's a Telnet server available to Windows CE ... communicates with specific hardware and forwards data to a back end ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: RDP access to SBS 2003 - HELP please
    ... Might I add that 'out of the box', when I first got the server it worked ... of it to the telnet prompt and quit. ... Try the remote desktop connection to see if it works. ... the effect that it can't connect to xxx.xxx.xxx.xxx port 23. ...
    (microsoft.public.windows.server.sbs)
  • Re: Telnet session "Shell process may not have been launched" (Solution)
    ... this is a feature change in win2k3 server. ... Microsoft Online Partner Support ... >the 2003 Security Guide suggests you disable the service, ... but Telnet won't be functional without it. ...
    (microsoft.public.windows.server.general)
  • RE: Your message did not reach some or all of the intended recipie
    ... In your details you are saying to type the following command ... > SMTP telnet session. ... When the issue happens again, in the Exchange Server, please telnet ... > times to close the connection to the server and leave the Telnet session ...
    (microsoft.public.windows.server.sbs)