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 X-Authentication-Warning: slinky.cs.nyu.edu: pechtcha owned process doing -bs Date: Wed, 26 Mar 2003 16:41:57 -0500 (EST) From: Igor Pechtchanski Reply-To: cygwin AT cygwin DOT com To: steve AT kelem DOT name cc: cygwin AT cygwin DOT com Subject: Re: Win32 error 126 under cron, but not under shell In-Reply-To: <3E821C74.3040006@pacbell.net> Message-ID: Importance: Normal MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On Wed, 26 Mar 2003, Steve Kelem wrote: > Igor Pechtchanski wrote: > > >Looks like a simple permission problem. Does your cron run under > >LocalSystem? > > > Yes it is, but I'm not sure what LocalSystem is. My W2K User Admin > doesn't list a user with that name. It's also commonly referred to as SYSTEM. It's a builtin account with very high privileges (higher than the Administrator), and it's not shown in the User Admin window. If you use cygrunsrv, your cron runs under SYSTEM. > > Is the above DLL readable/executable by LocalSystem? > > > How do I tell? The unix permissions are 555. (As is everything, I think.) You should be able to tell by the permissions... What's the output of "ls -l" on that DLL? What about getfacl? > > I'm > >assuming it's not in a mounted directory, or if it is, the mount is seen > >by LocalSystem as well. > > Igor > > > If I run 'id" from cron, I get: > uid=1000(kelem) gid=513(None) > groups=513(None),544(Administrators),547(Power Users),545(Users) > > Thanks, > Steve So your cron switches user context... Try running the offending command from a SYSTEM-owned bash window? To get one, type "at /interactive HH:MM c:\cygwin\bin\bash --login -i" at the command prompt, where HH:MM is the current hour and one minute in the future, and then wait up to 1 minute for it to pop up. Igor -- http://cs.nyu.edu/~pechtcha/ |\ _,,,---,,_ pechtcha AT cs DOT nyu DOT edu ZZZzz /,`.-'`' -. ;-;;,_ igor AT watson DOT ibm DOT com |,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski '---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow! Oh, boy, virtual memory! Now I'm gonna make myself a really *big* RAMdisk! -- /usr/games/fortune -- 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/