This is the mail archive of the cygwin 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: crontab/mount problem

On Tue, 28 Sep 2004, Robert Schmidt wrote:

> Larry Hall wrote:
> > Read this:
> >
> > <>
> >
> > If you've installed cron as directed, you won't have access to non-publicly
> > accessible shares.  Your options are to make the shares accessible to all
> > without authentication or run 'cron' as a service under the same user as
> > owns the crontab.  The former opens up your share's permissions
> > significantly.  The latter makes 'cron' usable by only you.
> >
> > There's plenty in the email archives about all this too if you're looking
> > for more reading.
> I'm wondering if this restriction also applies to e.g. DCOM permissions?
> I'm using cron to run a C# program (my own) which extracts contacts info from
> Outlook to an LDIF file, for importing into openldap.  This works fine on the
> command line, and works with cron running as myself.
> With cron running as System, using setuid to myself, the Outlook COM object
> model refuses access.  ("new Outlook.ApplicationClass" throws an
> UnauthorizedAccessException.)
> I'd rather avoid having to hardcode my user name and password into the
> cygrunsrv command line, so any ideas would be appreciated.

Well, you could do it as an experiment...  If that works, it'll be a data

It could be the permission issue, or it could be a much simpler "thou
shalt not unset SYSTEMROOT in services" issue (search the archives).
      |\      _,,,---,,_
ZZZzz /,`.-'`'    -.  ;-;;,_
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski, Ph.D.
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"Happiness lies in being privileged to work hard for long hours in doing
whatever you think is worth doing."  -- Dr. Jubal Harshaw

Unsubscribe info:
Problem reports:

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