This is the mail archive of the
cygwin-apps
mailing list for the Cygwin project.
Duplicity
- From: J2897 <john_shaw2897 at hotmail dot com>
- To: cygwin-apps at cygwin dot com
- Date: Thu, 18 Feb 2016 07:07:39 -0700 (MST)
- Subject: Duplicity
- Authentication-results: sourceware.org; auth=none
Cygwin appears to be appending unnessesary permissions to the files I
create/modify...
John ~ $ DUMP=/cygdrive/c/Users/John/temp/dump
John ~ $ icacls "$(cygpath -w "$DUMP")" /reset
processed file: C:\Users\John\temp\dump
John SH $ icacls "$(cygpath -w "$DUMP")"
C:\Users\John\temp\dump NT AUTHORITY\SYSTEM:(I)(OI)(CI)(F)
BUILTIN\Administrators:(I)(OI)(CI)(F)
PC1-W7\John:(I)(OI)(CI)(F)
John ~ $ ll $DUMP
total 0
-rwx------+ 1 John None 0 Feb 18 12:02 New Text Document (2).txt
-rwx------+ 1 John None 0 Feb 18 10:24 New Text Document.txt
John ~ $ icacls "$(cygpath -w "$DUMP")" /inheritance:r
processed file: C:\Users\John\temp\dump
John ~ $ ll $DUMP
ls: cannot open directory /cygdrive/c/Users/John/temp/dump: Permission
denied
John ~ $ icacls "$(cygpath -w "$DUMP")" /grant "$USERNAME:(OI)(CI)F"
processed file: C:\Users\John\temp\dump
John ~ $ ll $DUMP
total 0
-rwx------ 1 John None 0 Feb 18 12:02 New Text Document (2).txt
-rwx------ 1 John None 0 Feb 18 10:24 New Text Document.txt
John ~ $ icacls "$(cygpath -w "$DUMP")"
C:\Users\John\temp\dump PC1-W7\John:(OI)(CI)(F)
John ~ $ setfacl -b "$DUMP"
John ~ $ icacls "$(cygpath -w "$DUMP")"
C:\Users\John\temp\dump NULL SID:(DENY)(Rc,S)
PC1-W7\John:(F)
PC1-W7\None:(Rc,S,RA)
Everyone:(Rc,S,RA)
NULL SID:(OI)(CI)(IO)(DENY)(Rc,S)
CREATOR OWNER:(OI)(CI)(IO)(F)
CREATOR GROUP:(OI)(CI)(IO)(Rc,S,RA)
Everyone:(OI)(CI)(IO)(Rc,S,RA)
John ~ $
Is it possible to stop all of these permissions from being automatically
applied? It's just that I seem to be having problems when restoring
Duplicity backups.
The Duplicity backups seem to be restored just fine. But Duplicity always
complains with "Permission denied" errors, which I don't like.
I wrote a short script <http://pastebin.com/Xqkii5fB> that I hoped would
prepare the permissions, which failed...
John SH $ ./restore.sh
Local and Remote metadata are synchronized, no sync needed.
Last full backup date: Fri Feb 12 13:48:05 2016
Error '[Errno 13] Permission denied:
'/cygdrive/c/Users/John/temp/dump/hist/install.txt'' processing
hist/install.txt
Cleanup of temporary directory /tmp/duplicity-n0RUp5-tempdir failed - this
is probably a bug.
John SH $
--
View this message in context: http://cygwin.1069669.n5.nabble.com/Duplicity-tp124554.html
Sent from the cygwin-apps mailing list archive at Nabble.com.