This is the mail archive of the cygwin@cygwin.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]
Other format: [Raw text]

Re: CRON startup problems with Win2K


At 11:19 AM 6/12/2002, Scott Cokely wrote:
>I was looking through the mail archives for help with this, and found
>a post by Jari Aalto describing my problem, but I didn't see the resolution.
>
>The error that I get is:
>
>    cygrunsrv: Error starting a service: QueryServiceStatus:  Win32 error 1062:
>    The service has not been started.


More than likely, this is because a needed service isn't starting before
crond.  Check the email archives for this problem.  You'll find some 
suggestions of services you might want to create dependencies for.


>The error from "cron.exe" when run on the command line is:
>
>    seteuid: Not owner
>
>Corinna Vinschen responded with:
>
>>> Sure. cron needs privileges only given to SYSTEM by default.
>
>So my question is:  What do I do to give cron these privileges?  Starting
>cron as Administrator doesn't do it, and according to the README, cron
>is supposed to run as SYSTEM by default.  What do I need to do to make
>this work for me?


The SYSTEM account has the required privileges.  No other account does by
default.  See inetutils-*.README for the list of privileges required.  Keep
in mind that adding these privileges to another account opens a security 
hole.



>By the way, the command I'm using to create the service is as follows:
>
>    cygrunsrv -I cron -p /usr/sbin/cron -a -D -e "CYGWIN=tty ntsec"


Seems OK.


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


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


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