delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/12/18/20:35:42

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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
X-Authentication-Warning: slinky.cs.nyu.edu: pechtcha owned process doing -bs
Date: Wed, 18 Dec 2002 20:34:38 -0500 (EST)
From: Igor Pechtchanski <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: Mikhail Teterin <mi AT corbulon DOT video-collage DOT com>
cc: cygwin AT cygwin DOT com
Subject: Re: /etc/inetd.conf: No such file or directory
In-Reply-To: <200212190005.gBJ05txU027600@corbulon.video-collage.com>
Message-ID: <Pine.GSO.4.44.0212182001220.22125-100000@slinky.cs.nyu.edu>
Importance: Normal
MIME-Version: 1.0

On Wed, 18 Dec 2002, Mikhail Teterin wrote:

> > The paragraph you quote would make at least some sense to you
> > if you read the User's Guide
> > (http://cygwin.com/cygwin-ug-net/using.html#USING-PATHNAMES specifically
> > should help) or perhaps looked at the output of 'mount --help'.
> >
> > Try it.  You might like it. ;-)
>
> I wish you had addressed my primary question with the similar wit...
>
> Whatever the mount/mapping are doing, somehow, they are different for
> the same inetd.exe depending on whether it starts as a service or from
> command line.
>
> The actual mapping:
>
>         C:\cygwin\bin on /usr/bin type user (binmode)
>         C:\cygwin\lib on /usr/lib type user (binmode)
>         C:\cygwin on / type user (binmode)
>
> does not suggest any trouble, does it?

Yes, it does.  The trouble is that these are *user* mounts.  This means
that another user will not see these mounts.

> Why is the inetd.conf not found,
> even though both -- the cmd's ``dir'' and CygWin's ls confirm its presense:
>
>         C:\>dir C:\cygwin\etc\inetd.conf
>          Volume in drive C has no label.
>          Volume Serial Number is 07D1-0517
>
>          Directory of C:\cygwin\etc
>
>         12/16/2002  02:01p               1,973 inetd.conf
>                        1 File(s)          1,973 bytes
>                        0 Dir(s)  23,927,029,760 bytes free
>         mteterin AT doofus:~ (439) ls -l /etc/inetd.conf
>         -rw-r--r--    1 mteterin unknown      1973 Dec 16 14:01 /etc/inetd.conf
>
> ? Thank you,
>         -mi

The user "mteterin" does see the file in /etc, since for the user
"mteterin" the mount table points "/" to "c:\cygwin".  However, the inetd
daemon (and other services, actually) run as the "SYSTEM" user, which will
not see *user* mounts, so doesn't know where to find "/".

The solution is to remount all your directories as system mounts, by
running something like:

$ eval `mount -m | sed -e 's/-u/-s/' -e 's/$/;/g'`

This should fix your problem.  Try starting the service again.

If this doesn't work, you may have somehow acquired user mounts for the
user SYSTEM.  The following works on Win2k, but I haven't verified it on
any other system:
To check for user mounts, get a SYSTEM shell (by typing

$ at `date -d 'next min' +%T` /interactive 'c:\cygwin\bin\bash.exe'

in bash and waiting at most 1 minute), and run "mount" from there to make
sure you only have system mounts.  If you see user mounts from that shell,
run "umount -u 'mount_point'" for each user mount_point.
	Igor

> > Larry
>
> > Original Message:
> > -----------------
> > From: Mikhail Teterin mi AT corbulon DOT video-collage DOT com
> > Date: Wed, 18 Dec 2002 18:25:34 -0500 (EST)
> > To: cygwin AT cygwin DOT com
> > Subject: /etc/inetd.conf: No such file or directory
> >
> >
> > Hi!
> >
> > I'm struggling with the fresh install of CygWin on two machines.
> >
> > If I install the inetd as a service, it logs the following at startup
> > time:
> >
> >       /etc/inetd.conf: No such file or directory.
> >
> > rejecting all connections afterwards.
> >
> > However, the file most certainly IS present, and if ``inetd -d'' is started
> > from the bash window, the connections are possible. What's up?
> >
> > Running iu-config generated /etc/ftpusers, ftpwelcom, shells, and motd.
> > I told to not overwrite /etc/inetd.conf.
> >
> > This machine previously had a Cygwin installation in another (non-standard)
> > directory. Could there be a lingering registry setting somewhere, which
> > causes inetd.exe to look in the wrong place when started as a servics? Why
> > would this not be documented?
> >
> > The following paragraph from the inetutils's README:
> >
> >       - No user mount point is valid anymore! You have to install all
> >         your mount points in the system mount table. This doesn't
> >         change after you have logged in to a normal user account eg.
> >         via telnet/rlogin. [...]
> >
> > MAKES NO SENSE whatsoever. Perhaps, it should make sense to someone,
> > who's used earlier CygWin releases, but to a new user, it is worse than
> > not helpful.
> >
> >       -mi

-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha AT cs DOT nyu DOT edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor AT watson DOT ibm DOT com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

Oh, boy, virtual memory! Now I'm gonna make myself a really *big* RAMdisk!
  -- /usr/games/fortune


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.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