[Box Backup-commit] #66: Windows ACL support

Box Backup trac at boxbackup.org
Wed Mar 10 15:57:36 GMT 2010


#66: Windows ACL support
-------------------------+--------------------------------------------------
 Reporter:  achim        |       Owner:  ben    
     Type:  enhancement  |      Status:  new    
 Priority:  normal       |   Milestone:         
Component:  bbackupd     |     Version:  0.11rc2
 Keywords:  Windows ACL  |  
-------------------------+--------------------------------------------------

Comment(by achim):

 ACLs and file attributes
 [http://setacl.sourceforge.net/html/examples.html]
 (see examples 13 and 14 for storing and restoring ACL information to/from
 a file)

 [http://truetechsolutions.supersized.org/archives/24-SetAcl-goodness.html]

 Public domain (pre 2.0) version of SetACL
 [http://www.helge.mynetcologne.de/setacl/]

 List current ACLs
 {{{
 SetACL.exe -on "C:\test\AJL\BACKUPTEST\CASES\Set_6-acl\testfile" -ot shr
 -actn list
 SetACL.exe -on "D:" -ot shr -actn list
 }}}

 To set 'change' permissions on the directory:
 {{{
 $ SetACL.exe -on "C:\test\AJL\BACKUPTEST\CASES\Set_6-acl\testfile" -ot
 file -actn ace -ace "n:ajl;p:change"
 INFO: Privilege 'Back up files and directories' could not be enabled. This
 can probably be ignored.
 INFO: Privilege 'Restore files and directories' could not be enabled. This
 can probably be ignored.
 INFO: Processing ACL of:
 <\\?\C:\test\AJL\BACKUPTEST\CASES\Set_6-acl\testfile>

 SetACL finished successfully.
 }}}


 Remove write and change permission sets from file
 {{{
 $ SetACL.exe -on "C:\test\AJL\BACKUPTEST\CASES\Set_6-acl\testfile" -ot
 file -actn ace -ace "n:ajl;p:write,change;m:revoke"
 }}}

 Possible privileges are:
 write
 change
 full
 read_ex

 Removes "Everyone" from file (everyone becomes todos in ES version)
 {{{
 $ SetACL.exe -on "C:\test\AJL\BACKUPTEST\CASES\Set_6-acl\testfile" -ot shr
 -actn ace -ace "n:everyone;m:revoke"
 $ SetACL.exe -on "C:\test\AJL\BACKUPTEST\CASES\Set_6-acl\testfile" -ot shr
 -actn ace -ace "n:ajl;m:revoke"
 }}}


 Remove write and change permission sets from file, replace with 'read and
 execute' permissions:

 {{{
 SetACL.exe -on "C:\test\AJL\BACKUPTEST\CASES\Set_6-acl\testfile" -ot file
 -actn ace -ace "n:ajl;p:write,change;m:revoke" -ace "n:ajl;p:read_ex"
 }}}

-- 
Ticket URL: <https://www.boxbackup.org/trac/ticket/66#comment:1>
Box Backup <http://www.boxbackup.org/>
An open source, completely automatic on-line backup system for UNIX.



More information about the Boxbackup-commit mailing list