delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/01/09/16:41:11

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Message-ID: <20040109214049.3546.qmail@web60208.mail.yahoo.com>
Date: Fri, 9 Jan 2004 13:40:49 -0800 (PST)
From: Alan London <alondon7 AT yahoo DOT ca>
Subject: RE: cron + network share(w/ full access?)
To: "Harig, Mark" <maharig AT idirect DOT net>, tgun AT bioscrypt DOT com
Cc: cygwin AT cygwin DOT com
In-Reply-To: <BADF3C947A1BD54FBA75C70C241B0B9E01459617@ex02.co.idirect.net>
MIME-Version: 1.0

Hi,

Thanks for the message but cron_diagnose.sh doesn't
seem to give me insight on what I'm trying to do.  

I was trying to perform a hack discussed in this
thread:
http://www.cygwin.com/ml/cygwin/2003-04/msg01001.html

I am attempting to have the cron service run as
another user so that it can access network shares.

Thanks,
Alan

--- "Harig, Mark" <maharig AT idirect DOT net> wrote:
> Please try running this diagnostic script
> to see if it can help identify the cause
> of your problem:
> 
>
http://sources.redhat.com/ml/cygwin/2003-12/msg00711.html
> 
> > -----Original Message-----
> > From: Alan London [mailto:alondon7 AT yahoo DOT ca]
> > Sent: Thursday, January 01, 2004 11:38 PM
> > To: tgun AT bioscrypt DOT com
> > Cc: cygwin AT cygwin DOT com
> > Subject: Re: cron + network share(w/ full access?)
> > 
> > 
> > Hello and Happy New Year.
> > 
> > Would it be possible to see your altered
> /etc/passwd? 
> > I must be doing something wrong.  I've made my
> user
> > have uid 18, put his entry before SYSTEM, and I
> still
> > get the same 1062 error when starting the cron
> service
> > as that user. 
> > 
> > I've been banging my head against the wall on the
> > cron-job-accessing-network-shares problem for a
> couple
> > days now :)  I'm glad I found this thread, it's
> given
> > me some hope.
> > 
> > Can anyone verify that they've got this trick/hack
> to
> > work in the current version of cygwin cron?
> > 
> > Thanks in advance,
> > Alan
> > 
> > ------------
> > > Right. Looks like 18 is hardwired in cron.
> > > So after you create that user and update the
> > /etc/passwd file you would need to edit 
> > > /etc/password and change the uid of the user to
> 18.
> > With a little bit of luck
> > > the setuid(18) will be a noop. 
> > > Try keeping the SYSTEM uid to 18, too, for now.
> It's
> > probably hardwired too. 
> > > My head is spinning and I don't have the time to
> > sort through all the implications.
> > 
> > ok, changing the uid to 18 in the passwd file did
> it.
> > 
> > thanks a lot!
> > 
> > thanks to all the Cygwin developers, it's a
> fantastic
> > tool!
> > 
> > --tim
> > 
> > __________________________________
> > Do you Yahoo!?
> > New Yahoo! Photos - easier uploading and sharing.
> > http://photos.yahoo.com/
> > 
> > --
> > 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/
> > 
> > 


__________________________________
Do you Yahoo!?
Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes
http://hotjobs.sweepstakes.yahoo.com/signingbonus

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019