delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/11/01/14:53:48

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Message-ID: <3BE1A7EF.4030600@cportcorp.com>
Date: Thu, 01 Nov 2001 14:52:15 -0500
From: Peter Buckley <peter DOT buckley AT cportcorp DOT com>
User-Agent: Mozilla/5.0 (Windows; U; WinNT4.0; en-US; rv:0.9.2) Gecko/20010726 Netscape6/6.1
X-Accept-Language: en-us
MIME-Version: 1.0
To: Lou Rayman <LRayman AT REDTOP DOT COM>
CC: "'cygwin AT cygwin DOT com'" <cygwin AT cygwin DOT com>
Subject: Re: network resources from within cron job??
References: <768B9AAAE64FD5118E2600B0D022BFDB04496E AT HOMEPLATE>

 From the mailing list archives, (I searched with google for "cron 
seteuid not owner site:cygwin.com").

http://www.cygwin.com/ml/cygwin/2001-07/msg01536.html

 >It's very likely that you don't have the
 >appropriate privileges. Note that admin users don't have that
 >permissions by default. Try starting cron as service from
 >cygrunsrv (according to the README) under SYSTEM account.

This sounds like the problem- the Administrator account doesn't have the 
permissions to run the service, but naturally the SYSTEM account doesn't 
have the rights to the network share. You can give the Administrator 
account rights to start the service (detailed in 
/usr/doc/cygwin/inetutils-<ver>.README. This is "discouraged" because it 
gives the account super-user privileges.

Even if you make those changes, I wouldn't think that the local 
Administrator will have rights to the network share. You might want to 
create a domain user who has rights to start the service AND rights to 
the network share- but again, this is "discouraged" because it is 
"dangerous". YMMV.

HTH,
Peter

Lou Rayman wrote:

> I need to set up a cron job that has access to a network share.  It looks
> something like this:
> 
> net use z: \\\\computer\\share passwd /user:zzzz /persistant:no
> <a program that accesses z:>
> net usr z: /delete
> 
> the shell script runs fine under bash.  but from within cron I get:
> 
> System Error 1312
>  A specified logon session does not exist.  It may already have
>  been terminated.
> 
> I guess this is because cron is running under the local system account,
> which has no "logon" session.
> 
> I tried setting up the cron service to run under the host's Administrator
> account, but that gives me a error: seteuid: not owner
> 
> can anyone help me????
> --
> Lou Rayman               lrayman AT redtop DOT com
> Senior Engineer          www.redtop.com
> The Redtop Company, LLC
> 
> --
> 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/
> 
> 


-- 
-- 
Your mouse has moved.
Windows NT must be restarted for the change to take effect.
Reboot now?  [OK]

--


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

- Raw text -


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