telnetd with latest snapshots?

Charles S. Wilson cwilson@ece.gatech.edu
Mon Dec 13 21:15:00 GMT 1999


Has anybody been able to get telnetd working with the latest snapshots?

I've had inetd/telnetd working in the past. I've updated my system to
the latest snapshots, and telnet no longer works. I've tried:

starting from scratch, following the instructions at
http://www.geocities.com/CapeCanaveral/Lab/5735/1/installing_telnetd.html

recompiled inetutils-1.3.2 + Sergey's patch (just in case...)

These are the symptoms:

#1------------------------
  running inetd and telnet as "cwilson" - an ordinary user without
special rights. This should (and does) fail.
  ------------------------

~ > telnet localhost
Trying 127.0.0.1...
Connected to belgarion.riva.local.
Escape character is '^]'.

CYGWIN_NT-4.0   22.0(0.16/3/2) (belgarion) (tty2)

login: cwilson
Password:
Connection closed by foreign host.

By running inetd (as cwilson) in debug mode I also get the following:

someone wants telnet
accept, ctrl 3
+ Closing from 14
1069 execl /usr/local/libexec/in.telnetd
1069 reaped, status 0x100

Now, I'm not surprised that failed. It's not supposed to work because
"cwilson" doesn't have the proper rights. Here's the wierd thing: When I
run all this as Administrator, *WITH* the following rights explicitly
added:

Act as part of the operating system
Increase quotas
Replace a process level token

I get basically identical results:
#2---------------------------
  running inetd and telnet as "Administrator" - with the special rights
  ---------------------------

~ > telnet localhost
Trying 127.0.0.1...
Connected to belgarion.riva.local.
Escape character is '^]'.

CYGWIN_NT-4.0   22.0(0.16/3/2) (belgarion) (tty2)

login: cwilson
Password:
Connection closed by foreign host.

By running inetd (as Administrator) in debug mode I also get the
following:

someone wants telnet
accept, ctrl 3
+ Closing from 14
1067 execl /usr/local/libexec/in.telnetd
1067 reaped, status 0x100

-----------------------------------

Sorry for the length of this message, but can anybody shed some light on
this problem? My guess is that telnetd can't find my shell or something.
Here's the relevant entry from my passwd file:

cwilson::1002:545:Charles
Wilson,U-cwilson,S-1-5-21-144006512-467950226-1660491571-1002:/cygdrive/e/Users/cwilson:/bin/sh.exe

(all on one line). /bin/sh.exe does exist, it's a copy of bash.exe. I've
tried /bin/sh (no exe), /bin/bash, /bin/bash.exe. I've tried changing my
home dir path; mounting E:\ as /e, and using /e/Users/cwilson. I've
tried it with and without the special "U-cwilson" thing that Corinna
added two weeks ago. I'm at my wit's end on this thing.

Thanks,
--Chuck

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com



More information about the Cygwin mailing list