How to fix "No access" error when changing Windows file permissions
Yesterday I helped my father to install his new computer with Windows 7. For several reasons I shall not mention, it was in the best interest to take the hard drive of the old (broken) computer and copy all the data from it to the new. What he (and me) wanted was to keep all the settings and other stuff and just reinstall his programs. That meant copying the entire AppData folder under his user account in addition to his normal files.
During this process obviously all files had kept the old SIDs, and as they weren't matching his new SID (on the new computer) I was having problems accessing the files. Lots of stuff didn't work. I was getting "No access" messages left and right when I tried to change the permissions of those copied files. That is when it dawned on me that even though his user account was registered as an administrator, it wasn't able to change the permission bits on those files.
To avoid having to mess around forever to reset permissions to default inherited ACL on all those files (around 30000 or so of them) I dug a bit around on the Internet and found out that there is a command in Windows 7 called icacls.exe that works very much in the same way as chmod on Linux, just that it supports NTFS ACLs.
After reading around I found a forum post that mentioned it, and was redirected to Microsoft's knowledge base article on icacls.exe. After looking over that one I found this command line that solved everything.
cd C:\Users\username icacls * /reset /T
/T switch makes it run recursively.
/reset, as the KB article explains, replaces the ACL on each file and folder with the default inherited ACL that just uses the ACL on the parent folder.
The last thing that was required was to run this command inside a cmd.exe shell with elevated privileges. You can do that by finding the Command Prompt icon in your start menu and right-clicking "Run as administrator".
Be aware that mucking around with ACLs, if you don't know what you're doing, can seriously break your system in more ways than you can think of. It can also open you up to various attacks because of more relaxed permissions.
If you like what you just read, please subscribe to the feed or follow me on Twitter or any of the other networks I'm registered in to be updated when I post something new.
This solved exactly the problem you mentioned. Not only were those files unopen-able for me but I also suspect they weren't being indexed or included in file search results.
You might want to juice up you key words or whatever it is that makes this page show up in search results. I had to do a bit of digging to find your solution. i.e. I had to find and search the Windows command before you turned up.
Anyway, fixed things for me.
I'm happy that it solved your problem. I banged my head against the wall for several hours myself before I figured it out, while I recovered the computer of a relative.
alikasing aibiing alidades alieage alienate alienees alieners
I have learn this publish and if I may I wish to recommend you
few fascinating issues or advice. Perhaps you can write subsequent articles
regarding this article. I wish to learn more issues
online. You actually know how to bring a problem to light
and make it important. More people really need to look at this and understand this side of the story.
I can't believe you are not more popular because you most certainly have the gift.
Usually it's triggered by the sincerness displayed
in the article I looked at. And after this article How to fix "No access" error
when changing Windows file permissions. I was actually moved enough to post a thought ;-) I do have some
questions for you if it's okay. Could it be just me or
do some of the responses look as if they are coming from brain dead folks?
:-P And, if you are writing at additional sites, I'd like to follow
you. Could you make a list the complete urls of all your public sites like your twitter feed, Facebook page or linkedin profile?
These small businesses hired local teenagers tto deliver products to otherr businesses and many were pariishioners at the local churches and synagogues.
If you are trying to generate new leads for your business, your
web design needs to encourasge users to take action by
putting your captyre forms front and center and tnen enticing them to submit their information by offering inncentives sudh as freebies or exclusive discounts.
The roof on your house is very important - your roofing company is, too.
Telling the roofer how far you are from the coast upfront can help in the planning process
by providing the correct thickness in protective layers.
I'm looking to start my own blog in the near future but
I'm having a tough time making a decision between BlogEngine/Wordpress/B2evolution and
Drupal. The reason I ask is because your design seems different then most
blogs and I'm looking for something completely unique. P.S My apologies
for getting off-topic but I had to ask!
Glance advanced to far added agreeable from you!
By the way, how can we keep up a correspondence?
Parents de jeunes pas de temps perpignan maison de ville films que vous compris le moniteur nommé à titre l'aise avec l'entourage est ordinairement en tous les professeurs effectué sans
aucun extérieur pendant jours
vente maison perpignan petit prix
achat maison perpignan
maison de vacances region perpignan
maison a vendre perpignan avec piscine
maison quartier saint martin perpignan
I really like all the points you have made.
work and coverage! Keep up the great works guys I've you guys to my own blogroll.
of writing as well as from our argument made at
You can run your home business perfectly if you become cordial for the customers.
Donnie Jonston could be the author of this article about how you can make funds
on Ebay Donnie has a lot of work experience as being a
writer plus working with drop shippers in a very variety of entrepreneurial ventures.
touched some nice factors here. Any way keep up wrinting.
your article seem to be running off the screen in Chrome.
I'm not sure if this is a formatting issue or something to do with web browser compatibility
but I thought I'd post to let you know. The design and style look great though!
Hope you get the problem solved soon. Many thanks
enormous paragraph at at this place.
Leave a comment
|« Solved: ASUS P8Z68-V PRO GEN3 mainboard resetting instead of booting first device||Config::Role - Object constructor parameters from file made easy »|