Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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 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.> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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: > :::[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 . 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: > /{ 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 > ) > 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 > ""=" " > 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 . Gregg Smith greggsmith AT charter DOT net gregg AT petzent DOT com -- Want to unsubscribe from this list? Check out: http://cygwin.com/ml/#unsubscribe-simple