I have a Windows 2008 R2 file server. Some files seem to have lost all permissions. I have tried several methods to take ownership of these files so that I can restore the proper permissions. Here is what I have tried while logged in as the local administrator and as a domain administrator (all result in "access denied"):
- Standard take ownership method via the GUI
- Running explorer.exe as Administrator, then perform the usual take ownership method.
- Using the TAKEOWN command (both on the individual file, and parent directory with /R) in an administrative command prompt.
- Using the TAKEOWN command (both on the individual file, and parent directory with /R) in a command prompt as the "SYSTEM" user ("psexec -i -s -d cmd" from an administrative command prompt).
- Trying all of this with UAC off/on.
- Trying to change permissions with icacls in an administrative command prompt, and again in a SYSTEM command prompt.
- Trying to copy the files using various accounts.
- Trying to take ownership via the network share as a domain administrator.
- Double-check share permissions.
- Taking ownership of the parent folder with administrative explorer.exe, and check "Replace owner on subcontainers and objects".
While I could probably restore the files from backup, the problem remains that I won't be able to remove or overwrite the junk files. Also, there are no previous versions of these files in Shadow Copy.
Any other ideas besides rescue disks, chkdsk, and booting to safe mode (I can't bring the server down during the day)?
EDIT: I have also ensured that nobody has the file opened by using the Share and Storage Management tool.