This is the mail archive of the cygwin@sources.redhat.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: CygWin under WIN 98SE - login, passwd, group, services


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@charter.net <home>
gregg@petzent.com <office>



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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]