I have a Windows 7 desktop computer, I am the only user, with administrative rights. Today I installed a new HDD from another my Windows 7 computer. Now on this HDD I can not access my files and folders in the "Desktop" folder.
When I double click such folder I get a message: "You don't currently have permission to access this folder. Click Continue to permanently get access to this folder". After I click "Continue" I get a message: "You have been denied permission to access this folder. To gain access to this folder you will need to use the security tab." Then I open the "Security" tab, click "Advanced" button, open "Owner" tab, the tab shows: "Current owner: Unable to display current owner.". After I click "Edit" button, I get a message: "You only have permission to view the current owner". After I click "OK" button, a new window shows "Current owner: S-1-5-21-3867894240-3762958599-2688463192-1000" and no option to change that.
The same happens when I try to open or take ownership of my files in the "Desktop" folder.
At the same time I can open files and folders in other directories on that HDD.
How can I take ownership of my files and folders?
I have Windows 7 Home Premium, so I do not have access to the Local Security Policy Editor. My old computer got broken, so I took the HDD from it and put it into my other computer. The files on that HDD I am trying to access. That is not the HDD from which I boot now. I still hope that I will be able to repair the old computer, and then I will put the HDD back there. So, it is important to keep that HDD workable and preferably bootable. But for now on I need to have access to those files in the "Desktop" folder. For those folders that I can not open, Security tab shows that I already have the "Take ownership" permission but the option is greyed, so I can not change it.
Though copying of the folders did allow me to access them, something got messed up in the system, so that now Avast Antivirus does not allow me to boot Windows. I am still trying to figure it out. Right now I can boot either in the Safe Mode, or with Avast completely disabled in the Normal mode.
Another strange thing: something disallows me to edit security permissions for folders in the boot HDD 'C:\', that is all the allow options are checked for Administrators, but they are also greyed and unchangeable. The lowest editable level is the drive 'C:\' itself. Everything below is non-editable.
Probably set by the antivirus software. Still figuring this out.
I came to conclusion that inability to edit security permissions for inner folders is not a problem. It looks that the security permissions are set to be inherited from the outer folders and they can be edited there. It does not create the problem.
I booted Windows into the Safe Mode and in this mode I can access all files and folders in the Desktop folder on that HDD which I could not access in the normal mode. The owner of all these is set as "S-1-5-21-3867894240-3762958599-2688463192-1000". Yet it does not prevent me from opening them in the Safe boot.
Moreover, the owner of some of my files on that HDD that I could access in the normal boot from the beginning is also "S-1-5-21-3867894240-3762958599-2688463192-1000". Other my files on that HDD that I could access in the normal boot have owner "S-1-5-21-3867894240-3762958599-2688463192-501".
Another interesting thing, I copied a file from that HDD to my disk C:. On that HDD the file has an owner "S-1-5-21-3867894240-3762958599-2688463192-1000". But after copying on the disk C:\, the file's owner now became "User (Computer\User)".
When I copy files and folders from the "Desktop" folder on that HDD to my disk C:\, the file's owner is automatically changed to "Administrators (Computer\Administrators)"
Also, in the Safe Mode I can change ownership of the files and folders in the "Desktop" folder on that HDD. But after I reboot in the normal mode I still can not open the folders, despite I am set as the owner of the folder.
So, me not being set as the file's owner does not prevent me from opening such a file in the normal boot. And reversely, the reason that I can not open those files is not that I am not set as the owner of the files.