[Box Backup] Known bugs in Win32 client, Restored File Attributes problems?

Chris Wilson boxbackup@fluffy.co.uk
Mon, 27 Feb 2006 19:44:32 +0000 (GMT)


Hi Pete,

> The only problem will be if an individual file in the original source 
> (parent) directory had permissions different from that source parent 
> directory, then they will no longer have those special permissions after 
> the restore.

Yes, that's exactly the problem.

> And if so, I guess it behooves us to document, before any restore is 
> required, any such files with permissions different than their parent 
> directories so that they can be restored correctly.  Any ideas on how to 
> obtain that special-permissions info efficiently?

Well, I have some test code to obtain it, but there's no way to back it up 
right now, let alone restore it. That's what I'm trying to fix. Ben, 
Charles and I are having a long discussion on the -dev mailing list right 
now, please feel free to chime in.

> And when you say,
>> In general, the files will inherit the security attributes of the
>> containing folder.
> are there any imaginable situations where the files would NOT inherit
> the attributes of the parent folder?

There are some flags which can be set on a folder which prevent its 
permissions from being inherited by the contents of the folder. The rules 
for permissions and inheritance on Windows are quite complex.

Cheers, Chris.
-- 
_ ___ __     _
  / __/ / ,__(_)_  | Chris Wilson <0000 at qwirx.com> - Cambs UK |
/ (_/ ,\/ _/ /_ \ | Security/C/C++/Java/Perl/SQL/HTML Developer |
\ _/_/_/_//_/___/ | We are GNU-free your mind-and your software |