public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* problem with telnet, xinetd, native console apps
@ 2003-06-10  0:21 David Byron
  2003-06-27  1:33 ` unable to autologin to 2003 Bruce Dobrin
  0 siblings, 1 reply; 12+ messages in thread
From: David Byron @ 2003-06-10  0:21 UTC (permalink / raw)
  To: 'cygwin@cygwin.com'

[-- Attachment #1: Type: text/plain, Size: 1556 bytes --]

I seem to have run into the same problem that folks with inetutils pre
1.3.2-11 had with console output from native apps not getting displayed in a
telnet session.

I'm running XP Pro, Cygwin DLL 1.3.22, inetutils 1.3.2-22, and xinetd
2.3.9-1.  The rest of the details are attached.

I have xinetd started via init which is the only cygwin-related thing I can
see in the service control manager.

I normally run init with the "Allow service to interact with desktop" box
_un_checked.  To see if anything changed, I tried checking the box, and and
empty console window named cygrnusrv.exe appears, but that's all.

My console app doesn't display any output.  At least not initially.  It's an
interactive program that will finish (i. e. return from main()) when I type
quit\n.  After I type quit\n, I see the output I normally see before the
prompt, and the stuff it prints before quitting.

The normal output (in bash) looks like this:

$ ./hello
T: main: running...type quit to end example.
>: quit
T: exiting
$

The output in a telnet session looks like this:

$ ./hello
quit
T: main: running...type quit to end example.
>: T: exiting
$

Has there been a similar patch to xinetd as there was in inetutils 1.3.2-11?
I searched the archives, but came up empty.

Thanks much for your help.  Please let me know if I can provide more
information.

-DB
--
David Byron                   dbyron@everdream.com
Everdream                     http://www.everdream.com
6591 Dumbarton Circle         voice:(510)818-5550
Fremont, CA  94555            fax:(510)818-5510


[-- Attachment #2: cygcheck.txt --]
[-- Type: text/plain, Size: 14389 bytes --]


Cygwin Win95/NT Configuration Diagnostics
Current System Time: Mon Jun 09 17:08:43 2003

Windows XP Professional Ver 5.1 Build 2600 Service Pack 1

Path:	C:\utils\cygwin\usr\local\bin
	C:\utils\cygwin\bin
	C:\utils\cygwin\bin
	c:\utils\ActivePerl\bin\
	c:\WINDOWS\system32
	c:\WINDOWS
	c:\WINDOWS\System32\Wbem
	c:\Program Files\Microsoft SQL Server\80\Tools\BINN
	c:\Program Files\Microsoft Visual Studio .NET\Vc7\bin
	c:\apps\apache-ant-1.5.3-1\bin
	c:\Program Files\Microsoft Visual Studio .NET\Common7\IDE
	c:\apps\jdk1.3.1_08\bin
	c:\apps\emacs-21.2\bin
	C:\utils\cygwin\bin
	c:\utils\bin
	c:\utils\sysinternals
	C:\utils\cygwin\sbin

C:\utils\cygwin\bin\id.exe output (nontsec)
UID: 11978(DByron)  GID: 18(SYSTEM)
18(SYSTEM)

C:\utils\cygwin\bin\id.exe output (ntsec)
UID: 11978(DByron)   GID: 18(SYSTEM)
544(Administrators)  545(Users)           
10513(mkgroup_l_d)

SysDir: C:\WINDOWS\System32
WinDir: C:\WINDOWS

HOME = `c:\home\dbyron'
MAKE_MODE = `unix'
PWD = `/cygdrive/c/home/dbyron'
USER = `DByron'

ALLUSERSPROFILE = `C:\Documents and Settings\All Users'
ANT_HOME = `C:\apps\apache-ant-1.5.3-1'
APPDATA = `C:\Documents and Settings\DByron\Application Data'
CLASSPATH = `c:\apps\junit3.8.1\junit.jar;c:\apps\jdk1.3.1_08\lib\tools.jar\;C:\apps\apache-ant-1.5.3-1\lib\ant.jar'
CLIENTNAME = `Console'
COMMONPROGRAMFILES = `C:\Program Files\Common Files'
COMPUTERNAME = `DBYRON'
COMSPEC = `C:\WINDOWS\system32\cmd.exe'
CVS_RSH = `/bin/ssh'
HOMEDRIVE = `C:'
HOMEPATH = `\Documents and Settings\DByron'
HOSTNAME = `dbyron'
INCLUDE = `C:\Program Files\Microsoft Visual Studio .NET\FrameworkSDK\include\;C:\Program Files\Microsoft Visual Studio .NET\Vc7\PlatformSDK\Include;C:\Program Files\Microsoft Visual Studio .NET\Vc7\include;C:\Program Files\Microsoft Visual Studio .NET\Vc7\atlmfc\include;c:\apps\jdk1.3.1_08\include;c:\apps\jdk1.3.1_08\include\win32'
JAVA_HOME = `c:\apps\jdk1.3.1_08'
JUNIT_HOME = `c:\apps\junit3.8.1'
LIB = `C:\Program Files\Microsoft Visual Studio .NET\FrameworkSDK\Lib\'
LOGONSERVER = `\\SECOND'
MAILTO = `dbyron@everdream.com'
MANPATH = `:/usr/ssl/man'
MA_AGENT = `c:\svctools\softmgmt\rstate.exe'
NUMBER_OF_PROCESSORS = `1'
OLDPWD = `/usr/doc/Cygwin'
OS = `Windows_NT'
PATHEXT = `.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH'
PROCESSOR_ARCHITECTURE = `x86'
PROCESSOR_IDENTIFIER = `x86 Family 6 Model 8 Stepping 6, GenuineIntel'
PROCESSOR_LEVEL = `6'
PROCESSOR_REVISION = `0806'
PROGRAMFILES = `C:\Program Files'
PROMPT = `$P$G'
PS1 = `\[\033]0;\w\007
\033[32m\]\u@\h \[\033[33m\w\033[0m\]
$ '
SESSIONNAME = `Console'
SHLVL = `1'
SYSTEMDRIVE = `C:'
SYSTEMROOT = `C:\WINDOWS'
TEMP = `c:\DOCUME~1\DByron\LOCALS~1\Temp'
TERM = `cygwin'
TMP = `c:\DOCUME~1\DByron\LOCALS~1\Temp'
USERDOMAIN = `EVERDREAM'
USERNAME = `DByron'
USERPROFILE = `C:\Documents and Settings\DByron'
VSCOMNTOOLS = `"C:\Program Files\Microsoft Visual Studio .NET\Common7\Tools\"'
WINDIR = `C:\WINDOWS'
_ = `/usr/bin/cygcheck'

HKEY_CURRENT_USER\Software\Cygnus Solutions
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\Program Options
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2
  (default) = `/cygdrive'
  cygdrive flags = 0x00000022
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/
  (default) = `C:\utils\cygwin'
  flags = 0x0000000a
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/bin
  (default) = `C:\utils\cygwin/bin'
  flags = 0x0000000a
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/lib
  (default) = `C:\utils\cygwin/lib'
  flags = 0x0000000a
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/X11R6/lib/X11/fonts
  (default) = `C:\utils\cygwin\usr\X11R6\lib\X11\fonts'
  flags = 0x0000000a
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\Program Options

a:  fd           N/A    N/A                    
c:  hd  NTFS   38177Mb  44% CP CS UN PA FC     
d:  cd           N/A    N/A                    

C:\utils\cygwin                          /                         system  binmode
C:\utils\cygwin/bin                      /usr/bin                  system  binmode
C:\utils\cygwin/lib                      /usr/lib                  system  binmode
C:\utils\cygwin\usr\X11R6\lib\X11\fonts  /usr/X11R6/lib/X11/fonts  system  binmode
.                                        /cygdrive                 system  binmode,cygdrive

Found: C:\utils\cygwin\bin\awk.exe
Found: C:\utils\cygwin\bin\bash.exe
Found: C:\utils\cygwin\bin\cat.exe
Found: C:\utils\cygwin\bin\cp.exe
Not Found: cpp (good!)
Found: C:\utils\cygwin\bin\find.exe
Not Found: gcc
Found: C:\utils\cygwin\bin\gdb.exe
Found: C:\utils\cygwin\bin\grep.exe
Found: C:\utils\cygwin\bin\ld.exe
Found: C:\utils\cygwin\bin\ls.exe
Found: C:\utils\cygwin\bin\make.exe
Found: C:\utils\cygwin\bin\mv.exe
Found: C:\utils\cygwin\bin\rm.exe
Found: C:\utils\cygwin\bin\sed.exe
Found: C:\utils\cygwin\bin\sh.exe
Found: C:\utils\cygwin\bin\tar.exe

   58k 2002/05/07 C:\utils\cygwin\bin\cygbz2-1.dll - os=4.0 img=1.0 sys=4.0
                  "cygbz2-1.dll" v0.0 ts=2002/5/6 23:33
  848k 2003/04/11 C:\utils\cygwin\bin\cygcrypto-0.9.7.dll - os=4.0 img=1.0 sys=4.0
                  "cygcrypto-0.9.7.dll" v0.0 ts=2003/4/11 3:33
  645k 2003/04/11 C:\utils\cygwin\bin\cygcrypto.dll - os=4.0 img=1.0 sys=4.0
                  "cygcrypto.dll" v0.0 ts=2003/4/11 3:37
  551k 2003/04/02 C:\utils\cygwin\bin\cygcurl-2.dll - os=4.0 img=1.0 sys=4.0
                  "cygcurl-2.dll" v0.0 ts=2003/4/2 13:09
  380k 2002/07/24 C:\utils\cygwin\bin\cygdb-3.1.dll - os=4.0 img=1.0 sys=4.0
                  "cygdb-3.1.dll" v0.0 ts=2002/7/24 9:24
  487k 2002/07/24 C:\utils\cygwin\bin\cygdb_cxx-3.1.dll - os=4.0 img=1.0 sys=4.0
                  "cygdb_cxx-3.1.dll" v0.0 ts=2002/7/24 9:25
   45k 2001/04/25 C:\utils\cygwin\bin\cygform5.dll - os=4.0 img=1.0 sys=4.0
                  "cygform5.dll" v0.0 ts=2001/4/24 22:28
   35k 2002/01/09 C:\utils\cygwin\bin\cygform6.dll - os=4.0 img=1.0 sys=4.0
                  "cygform6.dll" v0.0 ts=2002/1/8 22:03
   76k 2003/03/09 C:\utils\cygwin\bin\cygform7.dll - os=4.0 img=1.0 sys=4.0
                  "cygform7.dll" v0.0 ts=2003/3/9 12:51
   28k 2003/03/22 C:\utils\cygwin\bin\cyggdbm-3.dll - os=4.0 img=1.0 sys=4.0
                  "cyggdbm-3.dll" v0.0 ts=2003/3/22 14:19
   19k 2003/03/22 C:\utils\cygwin\bin\cyggdbm.dll - os=4.0 img=1.0 sys=4.0
                  "cyggdbm.dll" v0.0 ts=2002/2/19 19:05
   15k 2003/03/22 C:\utils\cygwin\bin\cyggdbm_compat-3.dll - os=4.0 img=1.0 sys=4.0
                  "cyggdbm_compat-3.dll" v0.0 ts=2003/3/22 14:22
   17k 2001/06/28 C:\utils\cygwin\bin\cyghistory4.dll - os=4.0 img=1.0 sys=4.0
                  "cyghistory4.dll" v0.0 ts=2001/1/6 20:34
   20k 2002/10/10 C:\utils\cygwin\bin\cyghistory5.dll - os=4.0 img=1.0 sys=4.0
                  "cyghistory5.dll" v0.0 ts=2002/10/10 10:28
  929k 2002/06/24 C:\utils\cygwin\bin\cygiconv-2.dll - os=4.0 img=1.0 sys=4.0
                  "cygiconv-2.dll" v0.0 ts=2002/6/24 11:24
   22k 2001/12/13 C:\utils\cygwin\bin\cygintl-1.dll - os=4.0 img=1.0 sys=4.0
                  "cygintl-1.dll" v0.0 ts=2001/12/13 1:28
   28k 2002/09/20 C:\utils\cygwin\bin\cygintl-2.dll - os=4.0 img=1.0 sys=4.0
                  "cygintl-2.dll" v0.0 ts=2002/9/19 20:13
   21k 2001/06/20 C:\utils\cygwin\bin\cygintl.dll - os=4.0 img=1.0 sys=4.0
                  "cygintl.dll" v0.0 ts=2001/6/20 10:09
   26k 2001/04/25 C:\utils\cygwin\bin\cygmenu5.dll - os=4.0 img=1.0 sys=4.0
                  "cygmenu5.dll" v0.0 ts=2001/4/24 22:27
   20k 2002/01/09 C:\utils\cygwin\bin\cygmenu6.dll - os=4.0 img=1.0 sys=4.0
                  "cygmenu6.dll" v0.0 ts=2002/1/8 22:03
   48k 2003/03/09 C:\utils\cygwin\bin\cygmenu7.dll - os=4.0 img=1.0 sys=4.0
                  "cygmenu7.dll" v0.0 ts=2003/3/9 12:51
  156k 2001/04/25 C:\utils\cygwin\bin\cygncurses++5.dll - os=4.0 img=1.0 sys=4.0
                  "cygncurses++5.dll" v0.0 ts=2001/4/24 22:29
  175k 2002/01/09 C:\utils\cygwin\bin\cygncurses++6.dll - os=4.0 img=1.0 sys=4.0
                  "cygncurses++6.dll" v0.0 ts=2002/1/8 22:03
  226k 2001/04/25 C:\utils\cygwin\bin\cygncurses5.dll - os=4.0 img=1.0 sys=4.0
                  "cygncurses5.dll" v0.0 ts=2001/4/24 22:17
  202k 2002/01/09 C:\utils\cygwin\bin\cygncurses6.dll - os=4.0 img=1.0 sys=4.0
                  "cygncurses6.dll" v0.0 ts=2002/1/8 22:03
  284k 2003/03/09 C:\utils\cygwin\bin\cygncurses7.dll - os=4.0 img=1.0 sys=4.0
                  "cygncurses7.dll" v0.0 ts=2003/3/9 12:50
   15k 2001/04/25 C:\utils\cygwin\bin\cygpanel5.dll - os=4.0 img=1.0 sys=4.0
                  "cygpanel5.dll" v0.0 ts=2001/4/24 22:27
   12k 2002/01/09 C:\utils\cygwin\bin\cygpanel6.dll - os=4.0 img=1.0 sys=4.0
                  "cygpanel6.dll" v0.0 ts=2002/1/8 22:03
   31k 2003/03/09 C:\utils\cygwin\bin\cygpanel7.dll - os=4.0 img=1.0 sys=4.0
                  "cygpanel7.dll" v0.0 ts=2003/3/9 12:50
   63k 2003/04/11 C:\utils\cygwin\bin\cygpcre.dll - os=4.0 img=1.0 sys=4.0
                  "cygpcre.dll" v0.0 ts=2003/4/11 1:31
   61k 2003/04/11 C:\utils\cygwin\bin\cygpcreposix.dll - os=4.0 img=1.0 sys=4.0
                  "cygpcreposix.dll" v0.0 ts=2003/4/11 1:31
 1069k 2003/06/02 C:\utils\cygwin\bin\cygperl5_8_0.dll - os=4.0 img=1.0 sys=4.0
                  "cygperl5_8_0.dll" v0.0 ts=2003/6/2 5:01
  173k 2003/02/23 C:\utils\cygwin\bin\cygpng12.dll - os=4.0 img=1.0 sys=4.0
                  "cygpng12.dll" v0.0 ts=2003/2/23 14:02
   22k 2002/06/09 C:\utils\cygwin\bin\cygpopt-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygpopt-0.dll" v0.0 ts=2002/6/8 22:45
  108k 2001/06/28 C:\utils\cygwin\bin\cygreadline4.dll - os=4.0 img=1.0 sys=4.0
                  "cygreadline4.dll" v0.0 ts=2001/1/6 20:34
  127k 2002/10/10 C:\utils\cygwin\bin\cygreadline5.dll - os=4.0 img=1.0 sys=4.0
                  "cygreadline5.dll" v0.0 ts=2002/10/10 10:28
  176k 2003/04/11 C:\utils\cygwin\bin\cygssl-0.9.7.dll - os=4.0 img=1.0 sys=4.0
                  "cygssl-0.9.7.dll" v0.0 ts=2003/4/11 3:33
  165k 2003/04/11 C:\utils\cygwin\bin\cygssl.dll - os=4.0 img=1.0 sys=4.0
                  "cygssl.dll" v0.0 ts=2003/4/11 3:37
   50k 2002/03/12 C:\utils\cygwin\bin\cygz.dll - os=4.0 img=1.0 sys=4.0
                  "cygz.dll" v0.0 ts=2002/3/11 20:38
  948k 2003/03/18 C:\utils\cygwin\bin\cygwin1.dll - os=4.0 img=1.0 sys=4.0
                  "cygwin1.dll" v0.0 ts=2003/3/18 6:20
    Cygwin DLL version info:
        DLL version: 1.3.22
        DLL epoch: 19
        DLL bad signal mask: 19005
        DLL old termios: 5
        DLL malloc env: 28
        API major: 0
        API minor: 78
        Shared data: 3
        DLL identifier: cygwin1
        Mount registry: 2
        Cygnus registry name: Cygnus Solutions
        Cygwin registry name: Cygwin
        Program options name: Program Options
        Cygwin mount registry name: mounts v2
        Cygdrive flags: cygdrive flags
        Cygdrive prefix: cygdrive prefix
        Cygdrive default prefix: 
        Build date: Tue Mar 18 09:20:11 EST 2003
        CVS tag: dontuse-21
        Shared id: cygwin1S3


Cygwin Package Information
Last downloaded files to: C:\archive\cygwin
Last downloaded files from: http://mirror.averse.net/cygwin

Package              Version
_update-info-dir     00167-1
ash                  20020731-1
autoconf             2.54-1
autoconf-devel       2.57-1
autoconf-stable      2.13-4
base-files           1.3-1
base-passwd          1.1-1
bash                 2.05b-9
bc                   1.06-1
binutils             20030307-1
bzip2                1.0.2-2
chkconfig            1.2.24h-1
clear                1.0-1
cron                 3.0.1-9
crypt                1.0-1
curl                 7.10.4-1
cvs                  1.11.5-1
cygrunsrv            0.96-1
cygutils             1.1.3-1
cygwin               1.3.22-1
dejagnu              20021217-2
diffutils            2.8.1-1
doxygen              1.2.18-1
dpkg                 1.10.4-2
expect               20030128-1
file                 4.02-1
fileutils            4.1-1
findutils            4.1.7-4
gawk                 3.1.2-2
gcc2                 2.95.3-10
gdb                  20030303-1
gdbm                 1.8.3-1
gettext              0.11.5-1
grep                 2.5-1
groff                1.18.1-2
gzip                 1.3.3-4
inetutils            1.3.2-22
initscripts          0.9-1
less                 378-1
libbz2_1             1.0.2-2
libdb3.1             3.1.17-2
libgdbm              1.8.0-5
libgdbm-devel        1.8.3-1
libgdbm3             1.8.3-1
libiconv2            1.8-2
libintl              0.10.38-3
libintl1             0.10.40-1
libintl2             0.11.5-1
libncurses5          5.2-1
libncurses6          5.2-8
libncurses7          5.3-1
libpcre              4.1-1
libpcre0             4.2-1
libpng12             1.2.5-1
libpopt0             1.6.4-4
libreadline4         4.1-2
libreadline5         4.3-2
login                1.9-4
m4                   1.4-1
make                 3.79.1-7
man                  1.5j-2
mingw-runtime        3.0-1
mktemp               1.4-1
more                 2.11o-1
ncurses              5.3-1
openssl              0.9.7b-1
openssl096           0.9.6j-1
patch                2.5.8-3
pcre                 4.2-1
pcre-doc             4.2-1
perl                 5.8.0-3
readline             4.3-2
sed                  4.0.7-1
sh-utils             2.0.15-3
sharutils            4.2.1-2
shutdown             1.3-1
ssmtp                2.38.7-3
sysvinit             2.84-3
tar                  1.13.25-1
tcltk                20030214-1
termcap              20020930-1
terminfo             5.3-2
texinfo              4.2-4
textutils            2.0.21-1
time                 1.7-1
unzip                5.50-2
w32api               2.3-1
which                1.5-1
xinetd               2.3.9-1
zip                  2.3-2
zlib                 1.1.4-1

Use -h to see help about each section


[-- Attachment #3: Type: text/plain, Size: 218 bytes --]

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 12+ messages in thread

* unable to autologin to 2003
  2003-06-10  0:21 problem with telnet, xinetd, native console apps David Byron
@ 2003-06-27  1:33 ` Bruce Dobrin
  2003-06-27  2:40   ` Elfyn McBratney
  2003-06-27 10:25   ` Pierre A. Humblet
  0 siblings, 2 replies; 12+ messages in thread
From: Bruce Dobrin @ 2003-06-27  1:33 UTC (permalink / raw)
  To: cygwin

I hope this isn't a stupid question.  I configure cygwin with a script which
installs all passwd,  hosts.equiv, inetd etc.....  I have hundreds of
machines configured this way on which all is well.  I just installed 2003
server,  cygwin, and ran the autoconfig script.  I am unable to rsh to this
machine.  I get:

dobrin@srdalien2:/home/dobrin> rlogin srdalien2
Switching to user dobrin failed!
rlogin: connection closed.

or

dobrin@srdalien2:/home/dobrin> rlogin srdalien2 -l dobrin
Switching to user dobrin failed!
rlogin: connection closed.


cygwin settingis :
dobrin@srdalien2:/home/dobrin> echo $CYGWIN
binmode tty ntsec

Is there a known 2003 server issue,  I searched the mailing lists pretty
carefully,  but sisn't turn up anything.

telnet and non interactive rsh (rather than  rlogin),  work fine.


Bruce Dobrin
dobrin@imageworks.com



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: unable to autologin to 2003
  2003-06-27  1:33 ` unable to autologin to 2003 Bruce Dobrin
@ 2003-06-27  2:40   ` Elfyn McBratney
  2003-06-27 10:25   ` Pierre A. Humblet
  1 sibling, 0 replies; 12+ messages in thread
From: Elfyn McBratney @ 2003-06-27  2:40 UTC (permalink / raw)
  To: Bruce Dobrin; +Cc: cygwin

On Thu, 26 Jun 2003, Bruce Dobrin wrote:

> I hope this isn't a stupid question.  I configure cygwin with a script which
> installs all passwd,  hosts.equiv, inetd etc.....  I have hundreds of
> machines configured this way on which all is well.  I just installed 2003
> server,  cygwin, and ran the autoconfig script.  I am unable to rsh to this
> machine.  I get:
>
> dobrin@srdalien2:/home/dobrin> rlogin srdalien2
> Switching to user dobrin failed!
> rlogin: connection closed.
>
> or
>
> dobrin@srdalien2:/home/dobrin> rlogin srdalien2 -l dobrin
> Switching to user dobrin failed!
> rlogin: connection closed.
>
>
> cygwin settingis :
> dobrin@srdalien2:/home/dobrin> echo $CYGWIN
> binmode tty ntsec
>
> Is there a known 2003 server issue,  I searched the mailing lists pretty
> carefully,  but sisn't turn up anything.
>
> telnet and non interactive rsh (rather than  rlogin),  work fine.

AFAIK, none of the core developers have a copy of Windows 2003 Server to test
this stuff on. So, if you want/need help, you'll have to try and debug this
yourself.

It looks as though Cygwin cannot switch user context to 'dobrin' on your
server, so the first place to start would be checking that the account that's
running the rshd service has the required privileges (see
<http://cygwin.com/cygwin-ug-net/ntsec.html#NTSEC-SETUID> for more) to switch
user context, normally SYSTEM (LocalSystem).

Elfyn
-- 


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: unable to autologin to 2003
  2003-06-27  1:33 ` unable to autologin to 2003 Bruce Dobrin
  2003-06-27  2:40   ` Elfyn McBratney
@ 2003-06-27 10:25   ` Pierre A. Humblet
  2003-06-30 12:56     ` Corinna Vinschen
  1 sibling, 1 reply; 12+ messages in thread
From: Pierre A. Humblet @ 2003-06-27 10:25 UTC (permalink / raw)
  To: cygwin

On Thu, Jun 26, 2003 at 03:20:30PM -0700, Bruce Dobrin wrote:
> I hope this isn't a stupid question.  I configure cygwin with a script which
> installs all passwd,  hosts.equiv, inetd etc.....  I have hundreds of
> machines configured this way on which all is well.  I just installed 2003
> server,  cygwin, and ran the autoconfig script.  I am unable to rsh to this
> machine.  I get:
> 
> dobrin@srdalien2:/home/dobrin> rlogin srdalien2
> Switching to user dobrin failed!
> rlogin: connection closed.
> 
> or
> 
> dobrin@srdalien2:/home/dobrin> rlogin srdalien2 -l dobrin
> Switching to user dobrin failed!
> rlogin: connection closed.
> 
> 
> cygwin settingis :
> dobrin@srdalien2:/home/dobrin> echo $CYGWIN
> binmode tty ntsec
> 
> Is there a known 2003 server issue,  I searched the mailing lists pretty
> carefully,  but sisn't turn up anything.
> 
> telnet and non interactive rsh (rather than  rlogin),  work fine.
> 
> 
> Bruce Dobrin
> dobrin@imageworks.com
 
There is evidence that password-less logins (as well as exim) fail
on Windows 2003 because the SYSTEM account is lacking the CreateToken
privilege and can't setuid(). I don't know if/how that privilege can be 
added, can you investigate?

A workaround (reported to work) is to create a new privileged account and 
to run the daemons under that account (-u switch in cygrunsrv).
The new account (you could call it Root) should
1) be in the Administrators group
2) have the Login As A Service privilege
3)   "      Create Token       "
4)   "      Assign Token       "
5)   "      Increase Quota     "    (if it exists on your system. Does it?).
In addition by being Administrators it should also have the Backup and 
Restore Files privileges. If not, assign them explicitly.
Rebuild /etc/passwd after creating such an account.

Pierre
 

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: unable to autologin to 2003
  2003-06-27 10:25   ` Pierre A. Humblet
@ 2003-06-30 12:56     ` Corinna Vinschen
  0 siblings, 0 replies; 12+ messages in thread
From: Corinna Vinschen @ 2003-06-30 12:56 UTC (permalink / raw)
  To: cygwin

On Fri, Jun 27, 2003 at 06:26:54AM -0400, Pierre A. Humblet wrote:
> There is evidence that password-less logins (as well as exim) fail
> on Windows 2003 because the SYSTEM account is lacking the CreateToken
> privilege and can't setuid(). I don't know if/how that privilege can be 
> added, can you investigate?

Depending on the state of the machine (domain controller or not) it's
done in the "Domain Controller Security Policy" or in the "Local
Security Policy" MMC snap-in.  There's a sub group of settings called
"User Rights Assignment".  It lists all privileges and the users
having them.  Try adding SYSTEM to the (probably empty) list of users
having the "Create a token object" privilege and reboot the system.
If it still lives, check if the above helps.

Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Developer                                mailto:cygwin@cygwin.com
Red Hat, Inc.

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 12+ messages in thread

* RE: problem with telnet, xinetd, native console apps
@ 2003-06-18  2:32 Arnold Wang
  0 siblings, 0 replies; 12+ messages in thread
From: Arnold Wang @ 2003-06-18  2:32 UTC (permalink / raw)
  To: 'cygwin@cygwin.com'

David wrote the following:
> On Thu, 12 Jun 2003, Igor Pechtchanski wrote:

> > On Thu, 12 Jun 2003, David Byron wrote:
> > 
> > > On Thursday, June 12, 2003 9:30 AM, Vince Hoffman wrote:
> > >
> > > > The CYGWIN environment for the sshd service is set when sshd is 
> > > > installed (via cygrunsrv in ssh-host-config if you used corrina's 
> > > > script ) you can change it by editing the registry 
> > > > (HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\sshd\Par
> > > > ameters\Enviro nment) or by removing the service and reinstalling 
> > > > it.
> > >
> > > Thanks for the pointers.  Unfortunately, changing it there (both 
> > > removing tty, and removing everything) still doesn't make 
> > > my printfs appear.
> > 
> > Did you restart the service?

> Yes.
> 
> -DB
I'm having the exact same problem here with several different NS servers,
including NT4 and W2K. To make it more interesting, I have a co-worker
installed it on his W2K workstation and it works fine. We compared all the
settings we can think and couldn't find the difference. I wonder whether
there is further progress on this topic? Thanks, 



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 12+ messages in thread

* RE: problem with telnet, xinetd, native console apps
@ 2003-06-12 18:06 David Byron
  0 siblings, 0 replies; 12+ messages in thread
From: David Byron @ 2003-06-12 18:06 UTC (permalink / raw)
  To: 'cygwin@cygwin.com'

On Thu, 12 Jun 2003, Igor Pechtchanski wrote:

> On Thu, 12 Jun 2003, David Byron wrote:
> 
> > On Thursday, June 12, 2003 9:30 AM, Vince Hoffman wrote:
> >
> > > The CYGWIN environment for the sshd service is set when sshd is 
> > > installed (via cygrunsrv in ssh-host-config if you used corrina's 
> > > script ) you can change it by editing the registry 
> > > (HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\sshd\Par
> > > ameters\Enviro nment) or by removing the service and reinstalling 
> > > it.
> >
> > Thanks for the pointers.  Unfortunately, changing it there (both 
> > removing tty, and removing everything) still doesn't make 
> > my printfs appear.
> 
> Did you restart the service?

Yes.

-DB
--
David Byron                   dbyron@everdream.com
Everdream                     http://www.everdream.com
6591 Dumbarton Circle         voice:(510)818-5550
Fremont, CA  94555            fax:(510)818-5510

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 12+ messages in thread

* RE: problem with telnet, xinetd, native console apps
  2003-06-12 16:43 David Byron
@ 2003-06-12 17:50 ` Igor Pechtchanski
  0 siblings, 0 replies; 12+ messages in thread
From: Igor Pechtchanski @ 2003-06-12 17:50 UTC (permalink / raw)
  To: David Byron; +Cc: cygwin

On Thu, 12 Jun 2003, David Byron wrote:

> On Thursday, June 12, 2003 9:30 AM, Vince Hoffman wrote:
>
> > The CYGWIN environment for the sshd service is set when sshd
> > is installed (via cygrunsrv in ssh-host-config if you used
> > corrina's script ) you can change it by editing the registry
> > (HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\sshd\Par
> > ameters\Enviro nment) or by removing the service and
> > reinstalling it.
>
> Thanks for the pointers.  Unfortunately, changing it there (both removing
> tty, and removing everything) still doesn't make my printfs appear.
>
> Still curious,
> -DB

Did you restart the service?
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha@cs.nyu.edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor@watson.ibm.com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski, Ph.D.
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster."  -- Patrick Naughton


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 12+ messages in thread

* RE: problem with telnet, xinetd, native console apps
@ 2003-06-12 16:43 David Byron
  2003-06-12 17:50 ` Igor Pechtchanski
  0 siblings, 1 reply; 12+ messages in thread
From: David Byron @ 2003-06-12 16:43 UTC (permalink / raw)
  To: 'cygwin@cygwin.com'

On Thursday, June 12, 2003 9:30 AM, Vince Hoffman wrote:

> The CYGWIN environment for the sshd service is set when sshd
> is installed (via cygrunsrv in ssh-host-config if you used
> corrina's script ) you can change it by editing the registry
> (HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\sshd\Par
> ameters\Enviro nment) or by removing the service and
> reinstalling it.

Thanks for the pointers.  Unfortunately, changing it there (both removing
tty, and removing everything) still doesn't make my printfs appear.

Still curious,

-DB
--
David Byron                   dbyron@everdream.com
Everdream                     http://www.everdream.com
6591 Dumbarton Circle         voice:(510)818-5550
Fremont, CA  94555            fax:(510)818-5510

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 12+ messages in thread

* RE: problem with telnet, xinetd, native console apps
@ 2003-06-12 16:30 Vince Hoffman
  0 siblings, 0 replies; 12+ messages in thread
From: Vince Hoffman @ 2003-06-12 16:30 UTC (permalink / raw)
  To: 'David Byron', 'cygwin@cygwin.com'


> 
> Messages in the archive make it sound like ssh/sshd solve 
> this problem but
> not for me.  The CYGWIN environment variable in my ssh 
> session is binmode
> ntsec tty.  I'd love to know where this is coming from, or if 
> I can change
> it.  I tried changing it explicitly with
> 
> $ export CYGWIN=
> 
> but still no console output.
> 
> I'll be looking for more info about this, but if anyone can 
> lend this poor
> sap a hand, I'd greatly appreciate it.
> 

The CYGWIN environment for the sshd service is set when sshd is installed
(via cygrunsrv in ssh-host-config if you used corrina's script )
you can change it by editing the registry
(HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\sshd\Parameters\Enviro
nment) or by removing the service and reinstalling it.

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 12+ messages in thread

* RE: problem with telnet, xinetd, native console apps
@ 2003-06-12 16:20 David Byron
  0 siblings, 0 replies; 12+ messages in thread
From: David Byron @ 2003-06-12 16:20 UTC (permalink / raw)
  To: 'cygwin@cygwin.com'

> On Monday, June 9 @ 5:22p, I wrote:
> 
> > I seem to have run into the same problem that folks with
> > inetutils pre 1.3.2-11 had with console output from native 
> > apps not getting displayed in a telnet session.
> 
> > My console app doesn't display any output.

Usually dead silence from a mailing list means I'm doing something dumb.
And so it is this time.  I've fixed at least one dumb thing (system PATH set
wrong, so inetd works now), but still can't make my native console app
produce any output through a telnet session.

Messages in the archive make it sound like ssh/sshd solve this problem but
not for me.  The CYGWIN environment variable in my ssh session is binmode
ntsec tty.  I'd love to know where this is coming from, or if I can change
it.  I tried changing it explicitly with

$ export CYGWIN=

but still no console output.

I'll be looking for more info about this, but if anyone can lend this poor
sap a hand, I'd greatly appreciate it.

Thanks much.

-DB
--
David Byron                   dbyron@everdream.com
Everdream                     http://www.everdream.com
6591 Dumbarton Circle         voice:(510)818-5550
Fremont, CA  94555            fax:(510)818-5510

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 12+ messages in thread

* RE: problem with telnet, xinetd, native console apps
@ 2003-06-10 16:49 David Byron
  0 siblings, 0 replies; 12+ messages in thread
From: David Byron @ 2003-06-10 16:49 UTC (permalink / raw)
  To: 'cygwin@cygwin.com'

On Monday, June 9 @ 5:22p, I wrote:

> I seem to have run into the same problem that folks with 
> inetutils pre 1.3.2-11 had with console output from native 
> apps not getting displayed in a telnet session.

> My console app doesn't display any output.

A bit more info here.  I get the same behavior via ssh and sshd.  I'm doing

$ ssh localhost

to start the session, as I was doing

$ telnet localhost

and

$ rsh localhost

before.

I tried getting inetd working and turning off xinetd to see if that would
work, but no luck there.  I think I followed the instructions in
/usr/doc/Cygwin/inetutils-1.3.2.README correctly, but net start inetd fails.
When I reboot the system, I get two errors in the system event log from the
service control manager.  They say that inetd took more than 3 seconds to
start.

Part of the instructions is to set the CYGWIN environment variable to
"binmode tty ntsec" but when I do that, my program stops working even in a
plain old bash with no telnet, no ssh, etc.

Not sure if it's of interest, but my home directory when I start bash is
c:/home/dbyron -- the same as the HOME user environment variable.  My home
directory after telnet or ssh is /cygdrive/c/Documents and Settings/dbyron
-- same as if I had opened up a cmd window.

If anyone has pointers to get this working, I'd love to hear about them.

Thanks much.

-DB

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2003-06-30 12:42 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-06-10  0:21 problem with telnet, xinetd, native console apps David Byron
2003-06-27  1:33 ` unable to autologin to 2003 Bruce Dobrin
2003-06-27  2:40   ` Elfyn McBratney
2003-06-27 10:25   ` Pierre A. Humblet
2003-06-30 12:56     ` Corinna Vinschen
2003-06-10 16:49 problem with telnet, xinetd, native console apps David Byron
2003-06-12 16:20 David Byron
2003-06-12 16:30 Vince Hoffman
2003-06-12 16:43 David Byron
2003-06-12 17:50 ` Igor Pechtchanski
2003-06-12 18:06 David Byron
2003-06-18  2:32 Arnold Wang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).