X-Recipient: archive-cygwin AT delorie DOT com X-Spam-Check-By: sourceware.org Date: Mon, 2 May 2011 13:42:21 +0200 From: Corinna Vinschen To: cygwin AT cygwin DOT com Subject: Re: cronjobs for non-administrator-User don't work Message-ID: <20110502114221.GA736@calimero.vinschen.de> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: <013018D863E447468E7BA72043E2280501879AE27B AT HE111508 DOT emea1 DOT cds DOT t-internal DOT com> <634CFD657E419946BD70654E385A708F12F347BEA9 AT HE111508 DOT emea1 DOT cds DOT t-internal DOT com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <634CFD657E419946BD70654E385A708F12F347BEA9@HE111508.emea1.cds.t-internal.com> User-Agent: Mutt/1.5.21 (2010-09-15) Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: 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 On May 2 13:23, Ulrich DOT Herbst AT t-systems DOT com wrote: > Hi, > > we have: > > Cygwin Configuration Diagnostics > Current System Time: Mon May 02 12:26:11 2011 > > Windows 2008 R2 Server Enterprise Ver 6.1 Build 7600 > > Running under WOW64 on AMD64 > > Path: D:\cygwin\usr\local\bin > D:\cygwin\bin > D:\cygwin\bin > > SysDir: C:\Windows\system32 > WinDir: C:\Windows > > There, crond is running as service with user .\cyg_serv. > > We have two users: > user1 with administrator privilege, > user2 without administrator privilege, but part of the users-group in Windows. > > cronjobs for user1 are working. > > cronjobs for user2 aren't working. > > cron.log shows: > X-Cron-Env: > > 3147 [main] cron 6352 D:\cygwin\usr\sbin\cron.exe: *** fatal error - unable to load C:\Windows\system32\user32.dll, Win32 error 1114 > Stack trace: > Frame Function Args > > > Looking in explorer, I see, that C:\Windows\system32\users32.dll is readable and executable to administrators group and to users group. > > Any idea, why user2 isn't allowed to run cronjobs ? Not really. If I knew why user32 sometimes failed to load, I would be glad. However, you didn't mention which authentication method you're using(*) to switch to another user. Since that's cron, password authentication isn't an option anyway. From the passwordless methods, method one is the default, so I assume you're using it. Did you try to switch to method 2 or 3 and see if that works? Corinna (*) http://cygwin.com/cygwin-ug-net/ntsec.html#ntsec-setuid-overview -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Project Co-Leader cygwin AT cygwin DOT com Red Hat -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple