Re: cygserver won't start (FAQ alert)[SOLVED]

2004-09-29 Thread Michael Hipp
Igor Pechtchanski wrote:
One thing, when I installed this cygwin I checked the "Install For Just Me"
option. Could this have anything to do with it?

Bingo.  As I was reading your message, I thought "he should check that he
has system mounts".  You've just confirmed that you don't.  Re-mount all
of your mounts as "system", and your services will work.
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).
Thank you (all) ever so very much.
I had no idea what it took to "re-mount all your mounts as system" but I 
did the {eval "`mount -m | sed -e 's/ -u / -s /g' -e 's/$/;/'`"} from 
the msg referenced above and it now works like a charm.

(There are some occasional other users of this machine and I don't 
really want them to have access to something as powerful as cygwin so 
re-installing for all users was definitely not the preferred solution.)

Hmmm. I wonder if this will help another installation where "Task 
Scheduler" jobs don't seem to have access to windows network drives. 
Worth a try.

Thanks again,
Michael
--
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/


Re: cygserver won't start (FAQ alert)[SOLVED]

2004-09-29 Thread Larry Hall
At 01:57 PM 9/29/2004, you wrote:
>Igor Pechtchanski wrote:
>>>One thing, when I installed this cygwin I checked the "Install For Just Me"
>>>option. Could this have anything to do with it?
>>
>>Bingo.  As I was reading your message, I thought "he should check that he
>>has system mounts".  You've just confirmed that you don't.  Re-mount all
>>of your mounts as "system", and your services will work.
>>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).
>
>Thank you (all) ever so very much.
>
>I had no idea what it took to "re-mount all your mounts as system" but I did the 
>{eval "`mount -m | sed -e 's/ -u / -s /g' -e 's/$/;/'`"} from the msg referenced 
>above and it now works like a charm.
>
>(There are some occasional other users of this machine and I don't really want them 
>to have access to something as powerful as cygwin so re-installing for all users was 
>definitely not the preferred solution.)


Actually, system mounts are really *the* difference between installing 
"Just for me" and "All Users".  So you have effectively reinstalled for
all users now. ;-) 


>Hmmm. I wonder if this will help another installation where "Task Scheduler" jobs 
>don't seem to have access to windows network drives. Worth a try.


True but you won't see a difference.  When you say "Task Scheduler", you
mean the Windows service/utility, right?  Just curious.  There's the same
issue with 'cron' and any service that runs under "SYSTEM".  It has no 
access to shares that require authentication to access.  So you either 
need to make your shares accessible to everyone or run the service under
your user name and only for your user.


--
Larry Hall  http://www.rfk.com
RFK Partners, Inc.  (508) 893-9779 - RFK Office
838 Washington Street   (508) 893-9889 - FAX
Holliston, MA 01746 


--
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/



Re: cygserver won't start (FAQ alert)[SOLVED]

2004-09-30 Thread Michael Hipp
Larry Hall wrote:
True but you won't see a difference.  When you say "Task Scheduler", you
mean the Windows service/utility, right?  Just curious.  There's the same
issue with 'cron' and any service that runs under "SYSTEM".  It has no 
access to shares that require authentication to access.  So you either 
need to make your shares accessible to everyone or run the service under
your user name and only for your user.
Not sure I understood  all that. I have been attempting to run the 
scheduled task under the one-and-only username that ever accesses this 
box. (That's where the mapped network drives live.) So is it possible 
that re-installing as "Everyone" will fix it?

I've been thoroughly stumped thus far as to why a bash script that runs 
fine from the command prompt misbehaves from task scheduler even tho 
running as the same user.

Thanks,
Michael
--
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/