problems using cron to access NTFS encrypted files on XP Pro
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?
From: Matt McNeil [mailto:[hidden email]]
Sent: Saturday, October 29, 2005 11:45 AM
To: '+cyg+108+018c9e3839.cygwin#[hidden email]'
Subject: permission denied errors in script run by cron
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:
/bin/cp -uvdR My\ Documents/ /f/Documents\ and\ Settings/Matt/
/bin/echo 'done with /e/My Documents...'
Re: problems using cron to access NTFS encrypted files on XP Pro
On Nov 9 23:01, [hidden email] 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?
Yes, use the Windows task scheduler. You can't access the encrypted
files because the cron jobs don't run with full user credentials. In
other words, they don't have your password, which is necessary to access
encrypted files. There's no workaround, except by either storing your
password in cleartext or two-way encrypted at some point to do a
subsequent user logon (which should be a no-no for obvious reasons), or
by using a scheduler which is using password authentication to do its
job, which is for instance the windows scheduler.
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Project Co-Leader cygwin AT cygwin DOT com
Red Hat, Inc.