More Info - Cygwin Cron - Cannot Switch user context
Rebstock, Roland
Roland.Rebstock@usi.net
Tue Nov 9 15:31:00 GMT 2004
This resolved the issue
net user cron_server <passwd> /add /yes
net localgroup <administrators_group_name> cron_server /add
editrights -a SeAssignPrimaryTokenPrivilege -u cron_server
editrights -a SeCreateTokenPrivilege -u cron_server
editrights -a SeIncreaseQuotaPrivilege -u cron_server
editrights -a SeServiceLogonRight -u cron_server
mkpasswd -l -u cron_server >> /etc/passwd
For security reasons:
editrights -a SeDenyInteractiveLogonRight -u cron_server
editrights -a SeDenyNetworkLogonRight -u cron_server
editrights -a SeDenyRemoteInteractiveLogonRight -u cron_server
give "cron_server" permission to write on the "/var/run/cron.pid" and
"/var/log/cron.log"
And then create a cron service using that account:
cygrunsrv -I cron -p /usr/sbin/cron -a -D -u cron_server -w <passwd>
-----Original Message-----
From: Brian Ford [mailto:ford@vss.fsi.com]
Sent: Tuesday, November 09, 2004 10:15 AM
To: Rebstock, Roland
Cc: cygwin@cygwin.com
Subject: Re: More Info - Cygwin Cron - Cannot Switch user context
On Mon, 8 Nov 2004, Rebstock, Roland wrote:
> CYGWIN_NT-5.2 1.5.5
Two simple suggestions:
Upgrade. Cygwin 1.5.5 is now very old. I'd try 1.5.10, or a snapshot.
Have you attached cygcheck output yet? I don't remember seeing it.
--
Brian Ford
Senior Realtime Software Engineer
VITAL - Visual Simulation Systems
FlightSafety International
the best safety device in any aircraft is a well-trained pilot...
--
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/
More information about the Cygwin
mailing list