delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/12/04/08:22:33

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
Delivered-To: mailing list cygwin AT cygwin DOT com
Date: Tue, 4 Dec 2001 08:21:46 -0500 (EST)
From: Prentis Brooks <prentis AT aol DOT net>
To: Bob Bradford <Bob DOT Bradford AT kntc DOT ca>
cc: <cygwin AT cygwin DOT com>
Subject: Re: SCP under SYSTEM
In-Reply-To: <3C0CC002.7090005@kntc.ca>
Message-ID: <Pine.GSO.4.33.0112040821230.22023-100000@diva.web.aol.com>
MIME-Version: 1.0

How about using cron to exec your scp, that way you can have the scp exec
as a user with keys.

On Tue, 4 Dec 2001, Bob Bradford wrote:

>
> Hi,
>
> I am trying to run an SCP operation as a scheduled operation. It is
> convenient to fit this in with existing scheduled batch files using AT,
> and it all seems to run except that scp is complaining about keys (key
> verification failed message) and does not copy the file. If I run the
> bat file by hand as administrator it works fine.
>
> I think the cause is that there are no keys for SYSTEM. The AT command
> runs things as SYSTEM. I generated keys for Administrator, but I don't
> think those will get used by SYSTEM (true?). So how do I get this script
> to work? Can I generate keys for SYSTEM? Can I get it to use the
> Administrator keys (note the script must be able to be run by any user,
> so I can't force it to just one identity file)?
>
> I can run the thing from cron if cron switches user context, if that is
> the only solution. It will just be very inconvenient to have this one
> thing scheduled by cron when the rest are scheduled by AT.
>
> Bob
>
>
> --
> 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/
>

Prentis Brooks	| prentis AT aol DOT net | 703-265-0914 | AIM: PrentisB
Senior System Administrator - Web Infrastructure & Security

       A knight is sworn to valor.  His heart knows only virtue.  His blade
       defends the helpless.  His word speaks only truth.  His wrath undoes the
       wicked. - the old code of Bowen, last of the dragonslayers


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