Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Date: Thu, 30 Sep 2004 09:43:26 -0400 (EDT) From: Igor Pechtchanski Reply-To: cygwin AT cygwin DOT com To: Joshua Daniel Franklin cc: cygwin AT cygwin DOT com Subject: Re: cygserver won't start (FAQ alert) In-Reply-To: Message-ID: References: <4159D706 DOT 6020402 AT Hipp DOT com> <4159DAA9 DOT 1EDB4121 AT dessent DOT net> <4159DCC1 DOT 6090506 AT Hipp DOT com> <4159E37C DOT 26CF31BD AT dessent DOT net> <4159EAB4 DOT 3030708 AT Hipp DOT com> <415A0C37 DOT 46030DAE AT dessent DOT net> <415AEB41 DOT 5050107 AT Hipp DOT com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Scanned-By: MIMEDefang 2.39 On Wed, 29 Sep 2004, Joshua Daniel Franklin wrote: > On Wed, 29 Sep 2004 13:25:06 -0400 (EDT), Igor Pechtchanski wrote: > > > David, this is definitely an FAQ, but there is nothing in the FAQ about > > services (other than the "how do I install snapshots" entry). Should we > > add something along the lines: > > > > Why don't my services work? > > > > Most Windows services run as the SYSTEM user. If you installed Cygwin > > for "Just Me", the SYSTEM user won't see the mount table. You need to > > re-mount all of your mounts as "system" for services to work. > > > > We could even include the recipe for remounting as system (e.g., from > > ), or tell them to run > > setup.exe again and select "All Users" on the "Install For" screen (and > > use the "Keep" view, so that nothing gets upgraded accidentally). > > > > Incidentally, being able to use system mounts requires write access to the > > HKLM registry tree. However, installing services also seems to require > > it, so if anyone has problems with services not working (but being > > correctly installed into the registry) should also be able to use system > > mounts. Don't know if this is worth mentioning in the FAQ. > > Well, I updated that FAQ. Thanks very much. > I left out the registry-permission bits since it seemed superfluous. > KISS! Fair enough. > Umm, a couple of minor nits. First off, I think mentioning the option of re-running setup.exe and selecting "Install For All Users" would be helpful to those who don't like random scripts (besides, the script mentioned will re-mount *all* user mounts, whereas only "/", "/usr/bin", and "/usr/lib" are needed). It could, of course, be fixed by something like eval "`mount -m | egrep '\"/(|usr/(bin|lib))\"' | sed -e 's/ -u / -s /g' -e 's/$/;/'`" which you may or may not wish to use in the above entry. Also, quoting the contents of the above link: Workarounds include using public network share that does not require authentication (for non-critical files), or running the service as your own user with `cygrunsrv'. I would say `cygrunsrv -u' here instead, just to point people in the right direction. Also, How should I set my PATH? How should I set my PATH? This is done for you in the file /etc/profile, which is sourced by... i.e., the "How should I set my PATH?" question seems to have been replicated. HTH, Igor P.S. Joshua, are you the FAQ maintainer now? -- http://cs.nyu.edu/~pechtcha/ |\ _,,,---,,_ pechtcha AT cs DOT nyu DOT edu ZZZzz /,`.-'`' -. ;-;;,_ igor AT watson DOT ibm DOT com |,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski, Ph.D. '---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow! "Happiness lies in being privileged to work hard for long hours in doing whatever you think is worth doing." -- Dr. Jubal Harshaw -- 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/