I have a file that was brought to my attention. The user was complaining they weren't able to delete the file.
Upon further investigation it appears the permissions on the files are completely messed up. All other files in the directory are okay.
I am unable to even view the permissions, when I go to the Security tab I am presented with the message "You must have Read permissions to view...". I am logged in as an Administrator and I do not have this issue with other files.
I have tried
- Taking ownership of the file. I did this both as the local administrator account and as the system account (using psexec).
- File is not locked by another process.
- There are no warnings about the integrity of the file system, but I can't completely rule out file system corruption.
- The user appeared to have access right up until some time this morning. This is based on info gathered from our audit policy.
From this post I managed to get a copy of fileacl and run it. But I received access denied messages.
> fileacl "filename" /INHERIT /REPLACE /FORCE CreateFile failed, can't get file/dir attribute ! error! (rc=5) Access is denied. CreateFile error! (rc=5) Access is denied. Error in AddAccessRights for "file name"
It's as if the permissions were blanked on the file. Which I don't understand because our users do not have the "Change permission" privilege on any files, even ones they own.
Are there any other tricks that can be done to regain permission to the file? Everything I have found is related to taking ownership, which I cannot do. Is there some other way of overriding the permissions on the file?