delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/11/11/02:11:26

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
Message-Id: <200511110712.jAB7CbR2030523@gourmet.spamgourmet.com>
From: cyg DOT 108 AT xoxy DOT net
To: cygwin AT cygwin DOT com
Subject: RE: problems using cron to access NTFS encrypted files on XP
Date: Thu, 10 Nov 2005 23:11:15 -0800
MIME-Version: 1.0
In-Reply-To: <3.0.5.32.20051110212517.009d48c0@incoming.verizon.net>
X-Spamgourmet:

Hey Pierre,

That worked like a charm.  Thanks!  (I thought cron was running as me
--- /bin/whomai reported 'Matt' -- but it was really running as
LocalService or something like that...)

--Matt
 

-----Original Message-----
From: Pierre A. Humblet 
Sent: Thursday, November 10, 2005 6:25 PM
To: cyg DOT 108 AT xoxy DOT net
Subject: Re: problems using cron to access NTFS encrypted files on XP

If you are only backing up files to which you have access,
you can try running the cron service as yourself.
That option is available by running cron-config.

Pierre


At 11:01 PM 11/9/2005 -0800, you wrote:
>
>Well I think I'm figured out part of what's going on here.  It
appears
>that when the backup script is run by cron, it is not able to read or
>write encrypted NTFS files.  Is there a workaround?
>
>Thanks much,
>Matt
>
>
>
>-----Original Message-----
>From: Matt McNeil 
>Sent: Saturday, October 29, 2005 11:45 AM
>Subject: permission denied errors in script run by cron
>
>Hi,
>
>I'm trying to do automated backups with a cron job in cygwin and am
>running into permissions issues.  (I'm using XP Pro). 
>
>When I run these commands from the shell, they work fine -- no
errors:
>
>cd /e/
>/bin/cp -uvdR  My\ Documents/ /f/Documents\ and\ Settings/Matt/
>/bin/echo 'done with /e/My Documents...'
>
>However, when run from my crontab:
>
>40 11 * * * /home/Matt/backup >> /home/Matt/backup.log 2>&1
>
>it fails with errors like this:
>
>`My Documents/Dev/Spectrum/spectrum notes.txt' -> `/f/Documents and
>Settings/Matt/My Documents/Dev/Spectrum/spectrum notes.txt'
>/bin/cp: cannot open `My Documents/Dev/Spectrum/spectrum notes.txt'
>for reading: Permission denied
>
>If I include a /bin/whomai command in the backup script hit by cron,
I
>get, as expected my username "Matt".
>
>I've tried a number of permissions settings on both the source and
>target directories, but none seem to help.  Right now, they are set
>like this in Cygwin:
>
>-rwxrwxrwx  1 Matt SYSTEM 3.0K Oct 29 01:17 spectrum notes.txt
>
>These directories are also set to allow Full Control to "Everyone"
>using the XP Pro Security dialog.
>
>How can I set these permissions correctly (or get cron to run my
>script with the same context as it does when it works correctly from
>the command line)?
>
>Thanks much,
>Matt
>
>
>
>
>
>--
>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/
>
>



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