delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/07/14/10:23:42

X-Spam-Check-By: sourceware.org
To: cygwin AT cygwin DOT com
From: Andrew DeFaria <Andrew AT DeFaria DOT com>
Subject: Re: inetd help
Date: Fri, 14 Jul 2006 07:21:53 -0700
Lines: 40
Message-ID: <e989a3$584$1@sea.gmane.org>
References: <03D3B32F0D0D024791C1EE97D087E90907779E66 AT EXCH01 DOT purdue DOT lcl> <20060714140557 DOT GJ8759 AT calimero DOT vinschen DOT de>
Mime-Version: 1.0
User-Agent: Thunderbird 1.5.0.4 (Windows/20060516)
In-Reply-To: <20060714140557.GJ8759@calimero.vinschen.de>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/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

Corinna Vinschen wrote:
> inetd is not designed to run under cygrunsrv. It installs (and, fwiw, 
> removes) itself as service. One condition to get this right is to read 
> the documentation first, which, I think, is always a good idea:
>
> /usr/share/doc/Cygwin/inetutils-1.3.2.README
>
> There you'll see that not long ago a special option -D has been added 
> to allow running inetd under cygrunsrv. But it's not necessary, just 
> read on in the above document.
>
> Did you call the /bin/iu-config script before starting inetd? Or, in 
> other words, do you have a valid /etc/inetd.conf file?
Sounds like time for a /bin/inetd.config similar to 
/bin/ssh-host-config, /bin/cron.config, etc...
> Btw., when running on 2K3, the SYSTEM user has not enough privileges 
> to switch the user context w/o password, which will spoil using rsh a 
> bit... See the /bin/sshd-host-config script from the openssh package, 
> which installs not only the sshd serice, but also creates a new user 
> account called "sshd_server", which has the necessary privileges to do 
> that. You could remove the inetd service and recreate it again after 
> running /bin/sshd-host-config like this:
>
> cygrunsrv -R inetd
> cygrunsrv -I inetd -u sshd_server -w <sshd_server's password> ...
>
> Or you just change the user account in the Services MMC Snap-In.
I'd argue it's also becoming time for a replacement for the Local System 
Account for sshd, inetd and crond, perhaps named daemon instead of 
sshd_server which seems decidedly ssh biased. IOW maybe a little config 
script to create the daemon user - which the necessarily privileges like 
sshd_server - which each/any of the above mentioned config script could 
call in order to set up the service. In fact I think this should be the 
way to go even on older systems such as 2000 and XP instead of relying 
on Local System Account. Then it's a little cleaner that all Cygwin 
services requiring any specific permissions runs under the daemon local 
user...
-- 
Andrew DeFaria <http://defaria.com>
Why can't women put on mascara with their mouth closed?


--
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/

- Raw text -


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