delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/02/21/15:06:27

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Message-ID: <3A941696.32113F5E@charter.net>
Date: Wed, 21 Feb 2001 11:27:19 -0800
From: Gregg Smith <greggsmith AT charter DOT net>
X-Mailer: Mozilla 4.76 [en] (Win98; U)
X-Accept-Language: en
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: CygWin under WIN 98SE - login, passwd, group, services
References: <3A93707F DOT DC9D1BBC AT charter DOT net> <20010221090021 DOT K908 AT cygbert DOT vinschen DOT de> <200102211442 DOT QAA25216 AT linux.>

Original Reply from Corinna:

>> Okay, I'll accept that. The question still stands: Is there a better way of
>> terminating inetd than kill-ing it's process?

>You mean, besides shutting down Windows? Otherwise the answer is "no".
>But you shouldn't mind. It's the standard way to get rid of a daemon
>under UN*X, Don't misinterpret the word `kill'. It's just sending a
>signal to the daemon to end itself.

I guess I can 'kill' whenever I need to exit the shell, but I was looking for a way
to do it automatically, ie: not having to manually look up the process id. I would
like to be able to write a shutdown script that terminates my background processes.

Ehud Karni wrote:

> The group file (/etc/group) does not require any program. You can use
> any good text editor (I use Emacs) to create/edit it. The format is:
> <group-name>::<group-number>:[allowed users]

Thanks for the details. I have minimal Unix experience from my office location, but
too often commercial products (as well as Linux) offer utilities to handle
configuration, and skip the instructions for the manual method <smile>.
BTW, is there any usage of the second parameter (between group name & group
number), or is that simply a placeholder?
Same question for the 5th parameter in the /etc/passwd file..?

> > > services -
> > > Having seen no examples of the format of a services file, yet seeing
> > > [...]
> >
> > You don't have services in 9x/ME at all.
>
> I think he meant services in /etc/services. On 9x/ME this file is named
> services and is fount in the "windows" directory. Its format is like the
> UNIX /etc/services:
> <service-name>  <port>/{ tcp | udp }     [alias]  [# comment]
>

Yes, that was correct - my apologies for not fully qualifying the file name I was
referring to.

>
> inetd is not put into the services file because it is multiple services
> server itself, but if you want sshd to run (directly or by inetd) you
> should add the following line:
> ssh    22/tcp              # SSH Remote Login Protocol
> (for making it work thru inetd you'll have to add line to inetd.conf:
> ssh        stream      tcp    nowait  root   /usr/sbin/sshd  -i
> <service> <sock_type> <proto> <flags> <user> <server_path>   <args> )
>

Again, thank you for the detail. I originally referred to the comments placed in
the /etc/inetd.conf file genereated by the iu-config (inetutils) utility which
stated that inetd services would need to be restarted by typing:
net stop inetd
net start inetd
When I try this method, it says inetd is not a valid service type. The question(s)
then are: Is 'net' not to be run under Win9x? -or- Would an entry/entries in either
/etc/services or /windows/services enable this method to work?

> As for real services (those that are run when the system boots before
> any user is logged in), there is a way to achieve it on 9x/ME (I posted
> it on 2000-11-23), Add a key:
>     HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunServices
>     "<service-name>"="<windows-path> <args>"
> e.g. for sshd (at c:/cygwin/usr/sbin/sshd) with args "-b 1024" :
> "CygwinSshd"="c:\\cygwin\\usr\\sbin\\sshd -b 1024"

Thank you both very much for all of this information. There's tons to learn, but
I'm chipping away at it a little each day <smile>.

Gregg Smith
greggsmith AT charter DOT net <home>
gregg AT petzent DOT com <office>



--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


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