Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Sensitivity: Subject: RE: Has ANYONE got telnet via xinetd working on 2000 *SERVER*?? ( or 2003) To: cygwin AT cygwin DOT com From: Brian DOT Kelly AT empireblue DOT com Date: Thu, 7 Aug 2003 14:11:11 -0400 Message-ID: MIME-Version: 1.0 X-WSS-ID: 132C4941387029-01-03 Content-Type: multipart/mixed; boundary="0__=0ABBE7E8DFF360278f9e8a93df938690918c0ABBE7E8DFF36027" Content-Disposition: inline Note-from-DJ: This may be spam --0__=0ABBE7E8DFF360278f9e8a93df938690918c0ABBE7E8DFF36027 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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" @cygwin.com on 08/06/2003 11:32:29 AM Sent by: cygwin-owner AT cygwin DOT com To: "'Brian DOT Kelly AT Empireblue DOT com'" , "Vince Hoffman" cc: cygwin AT cygwin DOT 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" on 08/06/2003 > 08:41:38 AM > > To: "'Brian DOT Kelly AT Empireblue DOT com'" , > cygwin AT cygwin DOT 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 AT 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 AT GENBRIDEVINT1 ~ > $ > > > > Hope this helps. > > > > -----Original Message----- > > From: Brian DOT Kelly AT Empireblue DOT com [mailto:Brian DOT Kelly AT Empireblue DOT com] > > Sent: 06 August 2003 01:28 > > To: cygwin AT cygwin DOT 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 --0__=0ABBE7E8DFF360278f9e8a93df938690918c0ABBE7E8DFF36027 Content-Type: application/octet-stream; name=xinetd Content-Disposition: attachment; filename=xinetd Content-Transfer-Encoding: base64 IyEvYmluL2Jhc2gKIwojIEluaXQgZmlsZSBmb3IgeGluZXRkIGRhZW1vbgojCiMgY2hrY29uZmln OiAyMzQ1IDU1IDI1CiMgZGVzY3JpcHRpb246bmV0ZCB0ZXN0IAojCiMgcHJvY2Vzc25hbWU6IHhp bmV0ZAojIAojIAojIAojIAojIHBpZGZpbGU6IC92YXIvcnVuL3hpbmV0ZC5waWQKCiMgc291cmNl IGZ1bmN0aW9uIGxpYnJhcnkKLiAvZXRjL3JjLmQvaW5pdC5kL2Z1bmN0aW9ucwoKIyBwdWxsIGlu IHN5c2NvbmZpZyBzZXR0aW5ncwpbIC1mIC9ldGMvc3lzY29uZmlnL3hpbmV0ZCBdICYmIC4gL2V0 Yy9zeXNjb25maWcveGluZXRkCgpSRVRWQUw9MApwcm9nPSJ4aW5ldGQiCgojIFNvbWUgZnVuY3Rp b25zIHRvIG1ha2UgdGhlIGJlbG93IG1vcmUgcmVhZGFibGUKWElORVREPS91c3Ivc2Jpbi94aW5l dGQKUElEX0ZJTEU9L3Zhci9ydW4veGluZXRkLnBpZAoKCnN0YXJ0KCkKewoJZWNobyAtbiAkIlN0 YXJ0aW5nICRwcm9nOiIKCWRhZW1vbiAkWElORVREICRPUFRJT05TICYmIHN1Y2Nlc3MgfHwgZmFp bHVyZQoJUkVUVkFMPSQ/CglbICIkUkVUVkFMIiA9IDAgXSAmJiB0b3VjaCAvdmFyL2xvY2svc3Vi c3lzL3hpbmV0ZAoJZWNobwp9CgpzdG9wKCkKewoJZWNobyAtbiAkIlN0b3BwaW5nICRwcm9nOiIK CWtpbGxwcm9jICRYSU5FVEQgLVRFUk0KCVJFVFZBTD0kPwoJWyAiJFJFVFZBTCIgPSAwIF0gJiYg cm0gLWYgL3Zhci9sb2NrL3N1YnN5cy94aW5ldGQKCWVjaG8KfQoKcmVsb2FkKCkKewoJZWNobyAt biAkIlJlbG9hZGluZyAkcHJvZzoiCglraWxscHJvYyAkWElORVREIC1IVVAKCVJFVFZBTD0kPwoJ ZWNobwp9CgpjYXNlICIkMSIgaW4KCXN0YXJ0KQoJCXN0YXJ0CgkJOzsKCXN0b3ApCgkJc3RvcAoJ CTs7CglyZXN0YXJ0KQoJCXN0b3AKCQlzdGFydAoJCTs7CglyZWxvYWQpCgkJcmVsb2FkCgkJOzsK CXN0YXR1cykKCQlzdGF0dXMgJFhJTkVURAoJCVJFVFZBTD0kPwoJCTs7CgkqKQoJCWVjaG8gJCJV c2FnZTogJDAge3N0YXJ0fHN0b3B8cmVzdGFydHxyZWxvYWR8Y29uZHJlc3RhcnR8c3RhdHVzfSIK CQlSRVRWQUw9MQplc2FjCmV4aXQgJFJFVFZBTAo= --0__=0ABBE7E8DFF360278f9e8a93df938690918c0ABBE7E8DFF36027 Content-Type: application/octet-stream; name=xinetd.rh Content-Disposition: attachment; filename=xinetd.rh Content-Transfer-Encoding: base64 IyEvYmluL2Jhc2gKIwojIHhpbmV0ZCAgICAgICAgVGhpcyBzdGFydHMgYW5kIHN0b3BzIHhpbmV0 ZC4KIwojIGNoa2NvbmZpZzogMzQ1IDU2IDUwCiMgZGVzY3JpcHRpb246IHhpbmV0ZCBpcyBhIHBv d2VyZnVsIHJlcGxhY2VtZW50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gpjb25k cmVzdGFydCgpewogICAgWyAtZSAvdmFyL2xvY2svc3Vic3lzL3hpbmV0ZCBdICYmIHJlc3RhcnQK ICAgIHJldHVybiAwCn0KCgojIFNlZSBob3cgd2Ugd2VyZSBjYWxsZWQuCmNhc2UgIiQxIiBpbgog ICAgc3RhcnQpCglzdGFydAoJOzsKICAgIHN0b3ApCglzdG9wCgk7OwogICAgc3RhdHVzKQoJc3Rh dHVzICRwcm9nCgk7OwogICAgcmVzdGFydCkKCXJlc3RhcnQKCTs7CiAgICByZWxvYWQpCglyZWxv YWQKCTs7CiAgICBjb25kcmVzdGFydCkKCWNvbmRyZXN0YXJ0Cgk7OwogICAgKikKCWVjaG8gJCJV c2FnZTogJDAge3N0YXJ0fHN0b3B8c3RhdHVzfHJlc3RhcnR8Y29uZHJlc3RhcnR8cmVsb2FkfSIK CVJFVFZBTD0xCmVzYWMKCmV4aXQgJFJFVFZBTAoNCg== --0__=0ABBE7E8DFF360278f9e8a93df938690918c0ABBE7E8DFF36027 Content-Type: text/plain; charset=us-ascii -- 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/ --0__=0ABBE7E8DFF360278f9e8a93df938690918c0ABBE7E8DFF36027--