Hi,
My employer makes system backup software, and once in a while we get customers who are unable to complete their PC backup for certain files. We were able to reproduce the issue locally, and it turns out that certain files are skipped during the creation of a VSS snapshot, simply not present when accessed via the VSS snapshot prefix.
Further analysis showed that (this is under Vista and 7) the “Owner” of these skipped files is something weird: when attempting to view the security settings, the dialog states that we do not have access to this information and upon viewing the actual owner, it says to the effect of “Cannot display owner” - though I can (as an elevated admin) change the owner explicitly, and then take full control of the file.
Just for the record, this is not a TrustedInstaller issue.
Now, I have found a workaround for this, but I really hope there is another way since mine is rather obtrusive. What I have found to work is to use GetNamedSecurityInfo to get the owner, store the PSID, use SetNamedSecurityInfo to change the owner to the Administrators group, create the VSS snapshot, back the file up, then change the owner back to the weird PSID that I set aside earlier.
Obviously, this is a very nasty hack (at best)… but it works. And it’s necessary that the VSS snapshot contain all these files. Googling has been of no help, and I cannot see why *some* of the files in the MachineKeys folder would give me this weird owner and others would display “SYSTEM” just fine.
Summary of questions:
- Explanation for this weird owner
- Why does VSS skip these files, and is there a way to make them available to the VSS snapshot?
- Failing that, is temporarily changing the owner of these files a bad idea?
Thanks!
Mahmoud Al-Qudsi