delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/09/28/08:58:30

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/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
Date: Tue, 28 Sep 2004 08:57:22 -0400 (EDT)
From: Igor Pechtchanski <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: Robert Schmidt <rschm AT broadpark DOT no>
cc: cygwin AT cygwin DOT com
Subject: Re: crontab/mount problem
In-Reply-To: <cjbauj$k0i$1@sea.gmane.org>
Message-ID: <Pine.GSO.4.61.0409280856180.4120@slinky.cs.nyu.edu>
References: <20040928004522 DOT 64937 DOT qmail AT web21203 DOT mail DOT yahoo DOT com> <6 DOT 1 DOT 0 DOT 6 DOT 0 DOT 20040927225802 DOT 03f46470 AT pop DOT prospeed DOT net> <cjbauj$k0i$1 AT sea DOT gmane DOT org>
MIME-Version: 1.0
X-Scanned-By: MIMEDefang 2.39

On Tue, 28 Sep 2004, Robert Schmidt wrote:

> Larry Hall wrote:
> > Read this:
> >
> > <http://cygwin.com/cygwin-ug-net/ntsec.html#NTSEC-SWITCH>
> >
> > 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
point.

It could be the permission issue, or it could be a much simpler "thou
shalt not unset SYSTEMROOT in services" issue (search the archives).
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha AT cs DOT nyu DOT edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor AT watson DOT ibm DOT com
     |,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:      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