This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
RE: Has ANYONE got telnet via xinetd working on 2000 *SERVER*?? ( or 2003)
- From: Vince Hoffman <Vince dot Hoffman at uk dot circle dot com>
- To: "'Brian dot Kelly at empireblue dot com'" <Brian dot Kelly at empireblue dot com>, cygwin at cygwin dot com
- Date: Fri, 8 Aug 2003 10:01:48 +0100
- Subject: RE: Has ANYONE got telnet via xinetd working on 2000 *SERVER*?? ( or 2003)
Glad you got it going :)
Funny but i didnt get an xinetd installed in /rtc/rc.d/init.d/
or i wouldnt have done copied and edited sshd.
I didnt need to run iu-config.sh as it got run as postinstall by inetutils
for me.
vince
> -----Original Message-----
> From: Brian.Kelly@empireblue.com [mailto:Brian.Kelly@empireblue.com]
> Sent: 07 August 2003 19:11
> To: cygwin@cygwin.com
> Subject: RE: Has ANYONE got telnet via xinetd working on 2000
> *SERVER*??
> ( or 2003)
>
>
>
> BOY - WAS THAT ****PAINFUL****. I did *finally* get it all
> working - but
> it sure seems like there's
> got to be an easier way.
>
> Some lessons learned:
>
> 1. If you were set up for inetd *before* you attempt to
> use xinetd, be
> sure to set the CYGWIN environment
> variable.
>
> CYGWIN='binmode tty ntsec'
>
> I had the registry modified instead for inetd and it
> didn't occur to
> me till after about 12
> hours of trying everything else that this could be the culprit.
>
> 2. I found that copying the sshd to xinetd was not necessary. The
> default one that is put down with the
> xinetd install seems to work just fine.
>
> 3. Be sure to run iu-config in addition to
> everything else to
> set up the /etc environment if cygwin is
> truly a fresh install.
>
> 4. Make sure that /var/log is universally writable. If
> the xinetd
> service doesn't start when doing
>
> net start init
>
> then stop init service, remove /var/log/servicelog and make sure
> /var/log
> directory is writeable for all. Start init service. (Thanks to
> Sergey Okhapkin).
>
>
> #################### Telnet/Ftp via Xinetd INSTALL - SETUP
> Instructions ###############
>
> 1. Do a clean install (or REINSTALL) of inetutils,
> xinetd, sysvinit,
> chkconfig, and initscripts
>
> Note: inetd will NOT be running as a service, but the
> xinetd does need
> inetutils installed.
> Beyond simply putting the pieces on your harddisk
> via setup.exe,
> DO NOT
> follow any of the instructions regarding *inetd*.
>
> 2. Make sure your CYGWIN enviroment variable is set:
>
> CYGWIN='binmode tty ntsec'
>
> 3. run /bin/iu-config to set up the /etc folder.
>
> 4. run /usr/bin/init-config, NOT overwriting any
> config files, just
> install init as a service
>
> 5. cd /etc/rc.d/init.d then /usr/sbin/chkconfig --add xinetd
>
> 6. net stop init then net start init
>
> 7. telnet localhost
>
>
> THANKS VINCE!!
>
> ##############################################################
> ###################
>
> > had time to try this today, works fine.
> > steps were,
> > 1) clean install included inetutils, xinetd, sysvinit ,chkconfig and
> > initscripts (and vim but whatever editor you like ;)
> > 2) run /usr/bin/init-config, NOT overwriting any config
> files, just to
> > install init as a service.
> > 3) copy /etc/rc.d/init.d/sshd to /etc/rc.d/init.d/xinetd and
> > edit to make
> > appropriate to xinetd (available on request)
> >
> > 4) cd /etc/rc.d/init.d then /usr/sbin/chkconfig --add xinetd
> >
> > 5) net stop init net then net start init
> >
> > 6)
> > $ telnet localhost
> > Trying 127.0.0.1...
> > Connected to GENBRIDEVINT1.uk.circle.com.
> > Escape character is '^]'.
> >
> > CYGWIN_NT-5.0 1.3.22(0.78/3/2) (GENBRIDEVINT1) (tty0)
> >
> > login: administrator
> > Password:
> > Fanfare!!!
> > You are successfully logged in to this server!!!
> >
>
>
>
>
>
>
>
> "Vince Hoffman" <Vince.Hoffman@uk.circle.com>@cygwin.com on 08/06/2003
> 11:32:29 AM
>
> Sent by: cygwin-owner@cygwin.com
>
>
> To: "'Brian.Kelly@Empireblue.com'"
> <Brian.Kelly@Empireblue.com>, "Vince
> Hoffman" <Vince.Hoffman@uk.circle.com>
> cc: cygwin@cygwin.com
>
> Subject: RE: Has ANYONE got telnet via xinetd working on
> 2000 *SERVER*??
> ( or 2003)
>
>
>
> >
> >
> > WOW! Thanks dude! You're my hero! YES - I would *GREATLY*
> appreciate:
> >
> > "edit to make appropriate to xinetd (available on request)"
> >
> > So I am hereby *requesting* it :-)
> >
> as requested (find attached)
> its probably not a tidy as could be as i just ripped out the
> ssh specific
> bits,
> did
> %s/sshd/xinetd/g
> %s/SSHD/XINETD/g
> so.... remembering i did actualy have access to a redhat box
> using linux
> box
> using xinetd, find attached also, xinet.rh which is the
> redhat one with
> linux specific stuff cut out (checking for root user etc.)
> havent tested
> that one but it should work.
>
> hope this is enough to get yours working.
>
> On a side note, i originaly tried to use just xinetd as a service but
> realised there is no option to stop it forking to background
> so while it
> worked, you couldnt stop it without killing it from a command
> line/task
> manager :(.
>
> > It still *seems* like I did everything here (and more than
> > once I might
> > add) - and that
> > I *should* have got it working. Of course I will start fresh
> > and follow
> > your instructions
> > *to the letter* and then backstep to see why I wasn't able to get it
> > working on my own.
> >
> > The one thing of course that I would never have thought to do
> > would be to
> > copy
> > and modify sshd to xinetd. Not exactly *intuitive*! I'll be
> > anxious to see
> > if this was
> > indeed the one indispensible thing I needed to do.
> >
> > Again - appreciate all the assistance. I need xinetd to
> > maximize security
> > until we can
> > get secure shell working from the mainframe (don't hold
> your breath!).
> >
> > Ah well, some folks just like liv'in in the past!
> >
> > Brian Kelly
> >
> >
> >
> >
> >
> >
> > "Vince Hoffman" <Vince.Hoffman@uk.circle.com> on 08/06/2003
> > 08:41:38 AM
> >
> > To: "'Brian.Kelly@Empireblue.com'" <Brian.Kelly@empireblue.com>,
> > cygwin@cygwin.com
> > cc:
> >
> > Subject: RE: Has ANYONE got telnet via xinetd working on
> > 2000 *SERVER*??
> > ( or 2003)
> >
> >
> > had time to try this today, works fine.
> > steps were,
> > 1) clean install included inetutils, xinetd, sysvinit ,chkconfig and
> > initscripts (and vim but whatever editor you like ;)
> > 2) run /usr/bin/init-config, NOT overwriting any config
> files, just to
> > install init as a service.
> > 3) copy /etc/rc.d/init.d/sshd to /etc/rc.d/init.d/xinetd and
> > edit to make
> > appropriate to xinetd (available on request)
> >
> > 4) cd /etc/rc.d/init.d then /usr/sbin/chkconfig --add xinetd
> >
> > 5) net stop init net then net start init
> >
> > 6)
> > $ telnet localhost
> > Trying 127.0.0.1...
> > Connected to GENBRIDEVINT1.uk.circle.com.
> > Escape character is '^]'.
> >
> > CYGWIN_NT-5.0 1.3.22(0.78/3/2) (GENBRIDEVINT1) (tty0)
> >
> > login: administrator
> > Password:
> > Fanfare!!!
> > You are successfully logged in to this server!!!
> >
> > Administrator@GENBRIDEVINT1 ~
> > $ ps -e
> > PID PPID PGID WINPID TTY UID STIME COMMAND
> > 1684 1 1684 1684 con 500 13:25:25
> /usr/bin/bash
> > 2076 1 2076 2076 ? 18 13:33:22
> > /usr/bin/cygrunsrv
> > 1992 2076 1992 2016 ? 18 13:33:22 /sbin/init
> > 1756 1 1756 1756 ? 18 13:33:23
> > /usr/sbin/xinetd
> > 1952 1684 1952 508 con 500 13:39:57
> > /usr/bin/telnet
> > 1824 1756 1824 1016 ? 18 13:39:58
> > /usr/sbin/in.telnetd
> > 1804 1824 1804 1560 0 500 13:40:11
> /usr/bin/bash
> > 2276 1804 2276 2288 0 500 13:40:49 /usr/bin/ps
> >
> > Administrator@GENBRIDEVINT1 ~
> > $
> >
> >
> >
> > Hope this helps.
> >
> >
> > > -----Original Message-----
> > > From: Brian.Kelly@Empireblue.com
> [mailto:Brian.Kelly@Empireblue.com]
> > > Sent: 06 August 2003 01:28
> > > To: cygwin@cygwin.com
> > > Subject: Has ANYONE got telnet via xinetd working on 2000
> > > *SERVER*?? (or
> > > 2003)
> > >
> > >
> > > I've got invested about seven to eight total hours trying
> to get it
> > > working, plowing past
> > > one issue after another. I finally get a login prompt, but I can't
> > > authenticate with ANY ID,
> > > local or domain. Inetd on the other hand, works perfectly. I
> > > read folks had
> > > trouble getting
> > > similiar stuff working on 2003 Server. Could it be that 2000
> > > server and
> > > 2003 server really
> > > aren't all that different??
> > >
> > > Anyway, before I saddle you guys with "stuff", I thought I'd
> > > first ask if
> > > *anyone* is using
> > > it successfully on 2000 *Server*.
> > >
> > > Brian Kelly
> > >
> > >
> > >
> > >
> > > "WellChoice, Inc." made the following
> > > annotations on 08/05/2003 08:29:55 PM
> > > --------------------------------------------------------------
> > > ----------------
> > > Attention! This electronic message contains information that
> > > may be legally
> > > confidential and/or privileged. The information is intended
> > > solely for the
> > > individual or entity named above and access by anyone else is
> > > unauthorized.
> > > If you are not the intended recipient, any disclosure,
> > > copying, distribution,
> > > or use of the contents of this information is prohibited and
> > > may be unlawful.
> > > If you have received this electronic transmission in error,
> > > please reply
> > > immediately to the sender that you have received the message
> > > in error, and
> > > delete it. Release/Disclosure Statement
> > >
> > >
> > > --
> > > 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/
> > >
> >
> >
> >
> >
> >
> >
> >
> > "WellChoice, Inc." made the following
> > annotations on 08/06/2003 10:52:38 AM
> > --------------------------------------------------------------
> > ----------------
> > Attention! This electronic message contains information that
> > may be legally
> > confidential and/or privileged. The information is intended
> > solely for the
> > individual or entity named above and access by anyone else is
> > unauthorized.
> > If you are not the intended recipient, any disclosure,
> > copying, distribution,
> > or use of the contents of this information is prohibited and
> > may be unlawful.
> > If you have received this electronic transmission in error,
> > please reply
> > immediately to the sender that you have received the message
> > in error, and
> > delete it. Release/Disclosure Statement
> >
> >
> > --
> > 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/
> >
>
>
> (See attached file: xinetd)
> (See attached file: xinetd.rh)
> --
> 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/
>
>
>
> "WellChoice, Inc." made the following
> annotations on 08/07/2003 02:13:35 PM
> --------------------------------------------------------------
> ----------------
> Attention! This electronic message contains information that
> may be legally
> confidential and/or privileged. The information is intended
> solely for the
> individual or entity named above and access by anyone else is
> unauthorized.
> If you are not the intended recipient, any disclosure,
> copying, distribution,
> or use of the contents of this information is prohibited and
> may be unlawful.
> If you have received this electronic transmission in error,
> please reply
> immediately to the sender that you have received the message
> in error, and
> delete it. Release/Disclosure Statement
>
--
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/