delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/08/06/11:32:38

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Message-ID: <3500515B75D9D311948800508BA37955014BDE8A@EX-LONDON>
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>,
Vince Hoffman <Vince DOT Hoffman AT uk DOT circle DOT com>
Cc: cygwin AT cygwin DOT com
Subject: RE: Has ANYONE got telnet via xinetd working on 2000 *SERVER*?? (
or 2003)
Date: Wed, 6 Aug 2003 16:32:29 +0100
MIME-Version: 1.0
Note-from-DJ: This may be spam

------_=_NextPart_000_01C35C2F.F2308430
Content-Type: text/plain;
	charset="iso-8859-1"


> 
> 
> 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 DOT Hoffman AT uk DOT circle DOT com> on 08/06/2003 
> 08:41:38 AM
> 
> To:    "'Brian DOT Kelly AT Empireblue DOT com'" <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/
> 


------_=_NextPart_000_01C35C2F.F2308430
Content-Type: application/octet-stream;
	name="xinetd"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
	filename="xinetd"

#!/bin/bash=0A=
#=0A=
# Init file for xinetd daemon=0A=
#=0A=
# chkconfig: 2345 55 25=0A=
# description:netd test =0A=
#=0A=
# processname: xinetd=0A=
# =0A=
# =0A=
# =0A=
# =0A=
# pidfile: /var/run/xinetd.pid=0A=
=0A=
# source function library=0A=
. /etc/rc.d/init.d/functions=0A=
=0A=
# pull in sysconfig settings=0A=
[ -f /etc/sysconfig/xinetd ] && . /etc/sysconfig/xinetd=0A=
=0A=
RETVAL=3D0=0A=
prog=3D"xinetd"=0A=
=0A=
# Some functions to make the below more readable=0A=
XINETD=3D/usr/sbin/xinetd=0A=
PID_FILE=3D/var/run/xinetd.pid=0A=
=0A=
=0A=
start()=0A=
{=0A=
	echo -n $"Starting $prog:"=0A=
	daemon $XINETD $OPTIONS && success || failure=0A=
	RETVAL=3D$?=0A=
	[ "$RETVAL" =3D 0 ] && touch /var/lock/subsys/xinetd=0A=
	echo=0A=
}=0A=
=0A=
stop()=0A=
{=0A=
	echo -n $"Stopping $prog:"=0A=
	killproc $XINETD -TERM=0A=
	RETVAL=3D$?=0A=
	[ "$RETVAL" =3D 0 ] && rm -f /var/lock/subsys/xinetd=0A=
	echo=0A=
}=0A=
=0A=
reload()=0A=
{=0A=
	echo -n $"Reloading $prog:"=0A=
	killproc $XINETD -HUP=0A=
	RETVAL=3D$?=0A=
	echo=0A=
}=0A=
=0A=
case "$1" in=0A=
	start)=0A=
		start=0A=
		;;=0A=
	stop)=0A=
		stop=0A=
		;;=0A=
	restart)=0A=
		stop=0A=
		start=0A=
		;;=0A=
	reload)=0A=
		reload=0A=
		;;=0A=
	status)=0A=
		status $XINETD=0A=
		RETVAL=3D$?=0A=
		;;=0A=
	*)=0A=
		echo $"Usage: $0 {start|stop|restart|reload|condrestart|status}"=0A=
		RETVAL=3D1=0A=
esac=0A=
exit $RETVAL=0A=

------_=_NextPart_000_01C35C2F.F2308430
Content-Type: application/octet-stream;
	name="xinetd.rh"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
	filename="xinetd.rh"

#!/bin/bash=0A=
#=0A=
# xinetd        This starts and stops xinetd.=0A=
#=0A=
# chkconfig: 345 56 50=0A=
# description: xinetd is a powerful replacement for inetd. \=0A=
#	       xinetd has access control mechanisms, extensive \=0A=
#              logging capabilities, the ability to make services \=0A=
#              available based on time, and can place \=0A=
#              limits on the number of servers that can be started, =
\=0A=
#              among other things.=0A=
#=0A=
# processname: /usr/sbin/xinetd=0A=
# config: /etc/sysconfig/network=0A=
# config: /etc/xinetd.conf=0A=
# pidfile: /var/run/xinetd.pid=0A=
=0A=
PATH=3D/sbin:/bin:/usr/bin:/usr/sbin=0A=
=0A=
# Source function library.=0A=
. /etc/rc.d/init.d/functions=0A=
=0A=
# Get config.=0A=
test -f /etc/sysconfig/network && . /etc/sysconfig/network=0A=
=0A=
# More config=0A=
=0A=
test -f /etc/sysconfig/xinetd && . /etc/sysconfig/xinetd=0A=
=0A=
=0A=
=0A=
[ -f /usr/sbin/xinetd ] || exit 1=0A=
[ -f /etc/xinetd.conf ] || exit 1=0A=
=0A=
RETVAL=3D0=0A=
=0A=
prog=3D"xinetd"=0A=
=0A=
start(){=0A=
    echo -n $"Starting $prog: "=0A=
    # Need to get rid of localization for external services - =0A=
    # it doesn't make much sense to have i18n on the server side =
here=0A=
=0A=
    LANG=3Den_US=0A=
    LC_TIME=3Den_US=0A=
    LC_ALL=3Den_US=0A=
    LC_MESSAGES=3Den_US=0A=
    LC_NUMERIC=3Den_US=0A=
    LC_MONETARY=3Den_US=0A=
    LC_COLLATE=3Den_US=0A=
    export LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY =
LC_COLLATE=0A=
    unset HOME MAIL USER USERNAME=0A=
    daemon $prog -stayalive -pidfile /var/run/xinetd.pid =
"$EXTRAOPTIONS"=0A=
    RETVAL=3D$?=0A=
    echo=0A=
    touch /var/lock/subsys/xinetd=0A=
    return $RETVAL=0A=
}=0A=
=0A=
stop(){=0A=
    echo -n $"Stopping $prog: "=0A=
    killproc $prog=0A=
    RETVAL=3D$?=0A=
    echo=0A=
    rm -f /var/lock/subsys/xinetd=0A=
    return $RETVAL=0A=
=0A=
}=0A=
=0A=
reload(){=0A=
    echo -n $"Reloading configuration: "	=0A=
    killproc $prog -HUP=0A=
    RETVAL=3D$?=0A=
    echo=0A=
    return $RETVAL=0A=
}=0A=
=0A=
restart(){=0A=
    stop=0A=
    start=0A=
}=0A=
=0A=
condrestart(){=0A=
    [ -e /var/lock/subsys/xinetd ] && restart=0A=
    return 0=0A=
}=0A=
=0A=
=0A=
# See how we were called.=0A=
case "$1" in=0A=
    start)=0A=
	start=0A=
	;;=0A=
    stop)=0A=
	stop=0A=
	;;=0A=
    status)=0A=
	status $prog=0A=
	;;=0A=
    restart)=0A=
	restart=0A=
	;;=0A=
    reload)=0A=
	reload=0A=
	;;=0A=
    condrestart)=0A=
	condrestart=0A=
	;;=0A=
    *)=0A=
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"=0A=
	RETVAL=3D1=0A=
esac=0A=
=0A=
exit $RETVAL=0A=


------_=_NextPart_000_01C35C2F.F2308430
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/
------_=_NextPart_000_01C35C2F.F2308430--

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019