Jump to content

  • Log in with Twitter Log in with Windows Live Log In with Google      Sign In   
  • Create Account

Photo

Fix File Permissions Windows 10


  • Please log in to reply
10 replies to this topic

#1 ConnectionProblem

ConnectionProblem

    Newbie

  • Members
  • Pip
  • 3 posts

Posted 22 June 2016 - 01:42 PM

First of all been using your products for 3 years and they are great. Thank you for your support of a niche capability that I loved about WHS.

 

I recently reformatted installed Windows 10 and restored my pool, but my file permissions are a little messed up. Writing to folders of child folders that existed pre reinstall require User Access Control Confirmation and some programs pop an error saying I don't have access to write to them.

 

Thank you


  • Ginoliggime and KiaraEvirm like this

#2 Christopher (Drashna)

Christopher (Drashna)

    Customer and Technical Support

  • Administrators
  • 7,088 posts
  • LocationSan Diego, CA, USA

Posted 22 June 2016 - 04:14 PM

  1. Right click on the drive. 
  2. Open the "Security" tab. 
  3. Click on the "Advanced" button at the bottom. 
  4. Click on the "Change" link next to "Owner", and set the owner to "Administrators" and check the "Replace owner on subcontainers and objects" option.
  5. In the Permissions tab below, add full privileges to "Administrators", and "SYSTEM" (and for ease here), and to "Users"
  6. Check the "Replace all child object permission entries with inheritable permission entries from this object" option underneath.
  7. Click "OK", and agree to all of the prompts that it shows. 
 
If the pool is large, or has a LOT of small files, this may take upwards of a few hours. 
After it is done, you can set the fine grain control (or set the 'Users" group to only have Read & Execute permissions instead. 

Christopher Courtney

aka "Drashna"

Microsoft MVP for Windows Home Server 2009-2012

Lead Moderator for We Got Served

Moderator for Home Server Show

 

This is my server

 

Lots of "Other" data on your pool? Read about what it is here.


#3 ConnectionProblem

ConnectionProblem

    Newbie

  • Members
  • Pip
  • 3 posts

Posted 22 June 2016 - 05:52 PM

Bingo, thank you sir.



#4 Christopher (Drashna)

Christopher (Drashna)

    Customer and Technical Support

  • Administrators
  • 7,088 posts
  • LocationSan Diego, CA, USA

Posted 22 June 2016 - 06:37 PM

You're very welcome. 

 

And in case you're curious, want to learn a bit about NTFS permissions, or just like us being verbose: 

 

 

The specific issue is that user accounts are assigned a randomly generated "SID" (Security ID) upon creation. This SID is what is actually used in the NTFS security entries, rather than the user name. When you reinstall, the new account is going to have a new SID, even if you use the same name.   Meaning that the old account info is no longer valid. 

 

But you may notice that the built in accounts and groups (such as "SYSTEM" and "Administrator", or "Users" and "Administrators") are recognized just fine. These are "built in" and always use the same SID on EVERY installation of Windows (since before XP, even). 

So when assigning permissions, it may be best to use the built in groups whenever possible, as this will prevent issues when reinstalling. 

 

(Also, pinning and moving to the "Nuts & Bolts" section, since this is a FAQ)


Christopher Courtney

aka "Drashna"

Microsoft MVP for Windows Home Server 2009-2012

Lead Moderator for We Got Served

Moderator for Home Server Show

 

This is my server

 

Lots of "Other" data on your pool? Read about what it is here.


#5 ConnectionProblem

ConnectionProblem

    Newbie

  • Members
  • Pip
  • 3 posts

Posted 22 June 2016 - 06:42 PM

I don't think I was using any custom or granular users or groups. I'm pretty sure I changed the computer name. So I'm not sure if that lead to needing the fix.



#6 GreenApple

GreenApple

    Newbie

  • Members
  • Pip
  • 9 posts

Posted 16 July 2016 - 05:12 PM

Hello,

I followed the instructions from Drashna above and applied the settings to the Pool (Drive N: in my case).  The process did not complete and I received the two errors along with a warning afterwards that the recycle bin was corrupt and requesting that the contents be emptied.  Is there any advice or are there any additional steps I should take to apply permissions to the files in the pool?

 

I would like to attach some screen captures to this post but it was not working in Firefox.  Any tips on adding pictures to posts?

Thanks,



#7 Christopher (Drashna)

Christopher (Drashna)

    Customer and Technical Support

  • Administrators
  • 7,088 posts
  • LocationSan Diego, CA, USA

Posted 16 July 2016 - 06:20 PM

I don't think I was using any custom or granular users or groups. I'm pretty sure I changed the computer name. So I'm not sure if that lead to needing the fix.

 

If you reinstalled the system, it may still happen.

 

Users and groups are identified by Security IDs (SIDs).  Built in accounts (user accounts such as Administrator, Guest, SYSTEM; and groups such as Administrators, Users, Authenticated Users) always have the same SIDs.  

However, even if you use the same username on the new install, the account is going to get a randomly generated SID. 

 

And these SIDs are what are stored on the disks for the NTFS permissions.  So if you used something other than the built in accounts/groups, as soon as you reinstalled, those "other" SIDs are no longer valid, and are not used. 

 

 

This is why you'd have to reset the permissions after a reinstall, in some cases. And why it's best to use the built in groups, whenever possible. 

 

 

However, if you were using the built in groups, make sure all of the disks are present in the UI (no missing disks), as the pool is marked as read only, if there are missing disks. 

 

 

 

Hello,

I followed the instructions from Drashna above and applied the settings to the Pool (Drive N: in my case).  The process did not complete and I received the two errors along with a warning afterwards that the recycle bin was corrupt and requesting that the contents be emptied.  Is there any advice or are there any additional steps I should take to apply permissions to the files in the pool?

 

I would like to attach some screen captures to this post but it was not working in Firefox.  Any tips on adding pictures to posts?

Thanks,

 

 

The Recycle Bin thing is normal. Windows expects a very specific set of permissions on the folder. If these are "out of whack", it flags it as such, and will try to reset it to what it expects. 

 

As for the other errors, if you don't have ownership of the files, this can happen, in some cases.  And in this case, the above instructions are basically the same. Find the "owner" tab or section on the "Advanced" window, and set it to "Administrators".  Once you've done that, reapply the permissions, and it should fix everything.

 

Otherwise, please do grab screenshots.  Also, use something like Imgur to upload them. They list a BBCode that you can post here, actually). 


Christopher Courtney

aka "Drashna"

Microsoft MVP for Windows Home Server 2009-2012

Lead Moderator for We Got Served

Moderator for Home Server Show

 

This is my server

 

Lots of "Other" data on your pool? Read about what it is here.


#8 GreenApple

GreenApple

    Newbie

  • Members
  • Pip
  • 9 posts

Posted 16 July 2016 - 10:15 PM

Hello,

I've had ownership in the files in the past as an administrator and I believe the next step is to apply the same process to each folder.  It seems to fail at the DrivePool level.

I am sharing my screen captures at the following link using OneDrive.  Please review and let me know know if you have any additional advice.

Thanks

https://1drv.ms/f/s!...RQ_njNtSq060NFF



#9 Christopher (Drashna)

Christopher (Drashna)

    Customer and Technical Support

  • Administrators
  • 7,088 posts
  • LocationSan Diego, CA, USA

Posted 17 July 2016 - 09:24 PM

yeah, that's the "system volume information" folder.  Aka a nightmare...

 

 

If you see errors there, they are safe to ignore.  This is because Windows is overzealous about locking down this folder (there is a good reason, but still....). 


Christopher Courtney

aka "Drashna"

Microsoft MVP for Windows Home Server 2009-2012

Lead Moderator for We Got Served

Moderator for Home Server Show

 

This is my server

 

Lots of "Other" data on your pool? Read about what it is here.


#10 defcon

defcon

    Advanced Member

  • Members
  • PipPipPip
  • 31 posts

Posted 30 September 2016 - 12:38 PM

I've had this problem before after a Windows reinstall, its rather annoying and common. A faster (well not really, but less clicking around) way is to run following in an admin cmd prompt, at the root level of your data drives -

 

takeown /R /F *    (takes ownership)

ICACLS * /T /Q /C /RESET (resets all permissions to default and inherit)

 

Someone made a tool to this as well - http://lallouslab.ne...phical-utility/



#11 Christopher (Drashna)

Christopher (Drashna)

    Customer and Technical Support

  • Administrators
  • 7,088 posts
  • LocationSan Diego, CA, USA

Posted 01 October 2016 - 05:33 PM

Windows includes a built in graphical method to take ownership of files/folders and reset the permissions, though ....


Christopher Courtney

aka "Drashna"

Microsoft MVP for Windows Home Server 2009-2012

Lead Moderator for We Got Served

Moderator for Home Server Show

 

This is my server

 

Lots of "Other" data on your pool? Read about what it is here.





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users