Sunday 22 October 2017

WINDOWS: Taking Back/Restoring Default Ownership Permissions of directory


I have a 1TB external (USB) HDD which i used for additional data storage (mostly media files).


Unfortunately, i appear to have changed the permissions on one of the sub-folders, and this is my problem.


The PC which i used the drive on most of the time, has died. Now, putting this external drive into a new PC, i cannot access the said sub-directory (Music) as i do not have permission.


Is it at all possible to resore the permissions of this directory to the default (ie FULL access to EVERYONE with no specifically defined "owner"?


I think the problem now is that the Owner of the folder is my user account from my (now dead) previous PC.


I dont know if this helps but the permissions were adjusted (originally) on a Windows 8 PC, where i was logged in using my Micrsoft Account. Even when plugging in the drive to another Windows 8 PC (this time Surface Pro), and logging in using the same Microsoft Account, i still cannot access the files in the music folder.


Is this possible?



Answer



Run Command Prompt as administrator (right click->Run as administrator), and type there



takeown /f YourFolderName /r



That's it. This will make you owner of that folder.


For making it accessible to all users, you can do this:
Right click on that folder -> Properties -> Security -> Edit -> Add
and type there "Everyone" (or click Advanced -> Search and find smtg like "Everyone") and click OK buttons. Go back to Security tab, click on "Everyone" (in upper side), and choose "Full Access", click OK.
Now it will become accessible to all users.


No comments:

Post a Comment

Where does Skype save my contact's avatars in Linux?

I'm using Skype on Linux. Where can I find images cached by skype of my contact's avatars? Answer I wanted to get those Skype avat...