X-Spam-Check-By: sourceware.org Message-ID: <20060914021518.73455.qmail@web51513.mail.yahoo.com> Date: Wed, 13 Sep 2006 19:15:18 -0700 (PDT) From: Paul Coiner Subject: RE: Autonomous xinetd To: cygwin AT cygwin DOT com MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit 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 I have been able to resolve this issue by adding --env "CYGWIN=binmode ntsec tty" to the cygrunsrv.exe install. The full command is as follows: cygrunsrv.exe --install Xinetd --path /usr/sbin/xinetd --args "-filelog /etc/xinetd.log" --env "CYGWIN=binmode ntsec tty" --disp "Xinetd Server" Also, had to change the mount points from the initial CYGWIN directory to the new root directory where just the files were needed for ssh and xinetd. One other point to keep in mind, if you plan to run the ssh client as the SYSTEM account, don't forget to create a home directory somewhere for it and change /etc/passwd to reflect it. You can then open a SYSTEM shell and create your ssh private and pub keys and install them on the remote system. I do however have one outstanding issue with this install, even though the service starts properly either from Services Manager, net start, or cygrunsrv -S xinetd, after you refresh or check the status of the service it then shows "stopped" but the process is still running properly in task manager and it is functioning well. How do you get the service to report a proper state? -Regards Paul >Good day all, > >Let me preceed my question by thanking everyone for >taking the time to look at this. > >I am trying to get xinetd to run as a service under >windows without the full installation of cygwin. The >only service that I have configured is the cygwin ssh >client. The purpose of this is to have dynamic ssh >tunnels built on demand when an application accesses >the ports, ssh will then proxy all communication via >connect.c on the remote computer. This works >splendedly on *nix to *nix and even from within the >full cygwin environment. > >I have all of the respective .dll's in the proper >directory and xinetd starts properly both from the cmd >line and from the service, however when communication >comes into xinetd and it triggers ssh, I am getting >"Permission denied (errno = 13)" This occurs >regardless of if xinetd is started via cmd line or via >the service. I have tried multiple accounts and >changed the xinetd.conf to reflect them. I even >created a local account that has the following >permissions and made it a member of the local >administrators group: > >Act as part of the operating system >Impersonate a client after authentication >Log on as a service >Replace a process level token > > >Here is a directory listing: > >07/05/2006 01:27 AM 22,016 cat.exe >07/05/2006 01:27 AM 34,304 chmod.exe >07/05/2006 01:27 AM 39,424 chown.exe >06/01/2006 12:12 PM 1,074,688 >cygcrypto-0.9.8.dll >11/19/2005 10:25 PM 969,728 cygiconv-2.dll >11/19/2005 10:13 PM 31,744 cygintl-3.dll >10/22/2004 04:28 PM 20,992 cygminires.dll >07/30/2006 02:22 PM 1,875,110 cygwin1.dll >08/22/2005 10:03 PM 66,048 cygz.dll >09/06/2006 01:15 PM 395 id_rsa.pub >04/18/2003 06:05 PM 32,256 instsrv.exe >09/12/2006 09:23 AM 273 log.txt >07/05/2006 01:27 AM 91,136 ls.exe >09/06/2006 10:14 AM 35 services >04/18/2003 06:06 PM 8,192 srvany.exe >03/29/2006 08:35 AM 94,720 ssh-keygen.exe >03/29/2006 08:35 AM 236,032 ssh.exe >05/07/2006 04:30 PM 1,363,968 vim.exe >09/12/2006 08:50 AM 283 xinetd.conf >11/15/2002 09:02 PM 140,800 xinetd.exe > > >I have even gone so far as chmod 777 * on all the >files just to make sure that wasn't the issue. > >Finally, here is the output of the logfile: > >C:\xinetd>cat log.txt >06/9/12 AT 09:23:24 xinetd[5312]: NOTICE: xinetd Version >2.3.9 started with no options compiled in. >06/9/12 AT 09:23:24 xinetd[5312]: NOTICE: Started >working: 1 available service >06/9/12 AT 09:23:36 xinetd[5388]: ERROR: execv( >c:\xinetd\ssh ) failed: Permission denied (errno = 13) > > >Also, this is the xinetd.conf file. > >service test >{ > flags = REUSE > socket_type = stream > wait = no > user = serviceadmin > server = c:\xinetd\ssh > server_args = -T -q test AT 10 DOT 1 DOT 1 DOT 108 connect >10.1.1.1 23 > disable = no >} > > ># > > > >Kindest Regards, >Paul > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.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/