W10 changes user rights on folders

Page 2 of 2 FirstFirst 12

  1. Posts : 1,093
    Windows XP/7/8/8.1/10, Linux, Android, FreeBSD Unix
       #11

    Thanks for the answer but what does one put in for the %Userdomain% part if the computer is not part of the domain. I noticed that when one does the properties -> securities -> advanced and adds one to the user/groups will full control, it still would not change permissions for all the files and folders under it as some files and folders seem to require doing it directly.
      My Computer


  2. Posts : 5,478
    2004
       #12

    Almighty1 said:
    Thanks for the answer but what does one put in for the %Userdomain% part if the computer is not part of the domain. I noticed that when one does the properties -> securities -> advanced and adds one to the user/groups will full control, it still would not change permissions for all the files and folders under it as some files and folders seem to require doing it directly.
    If you are not in a domain %userdomain% gives the name of your local PC so you can leave it as it is - you actually type in %userdomain%\%username% (with all the % signs) - no need to substitute anything. You only need change the bit in red.

    For the GUI there is a tick box which says something like "replace all child items permissions" which you would need to tick. The is the same as the /T on icacls and /r on takeown both of which mean to apply to all objects contained within the directory you specify and not just the directory object itself.
      My Computer


  3. Posts : 1,093
    Windows XP/7/8/8.1/10, Linux, Android, FreeBSD Unix
       #13

    Ah so basically, I should type it like this assuming I want it to be owned by user bob...

    takeown /f "D:\Problem Directory" /r
    icacls "D:\Problem Directory" /grant "%USERDOMAIN%\bob"F) /t

    In the GUI, I did check enable hierarchy but then it tries to change everything and then will always get stuck on some files or folders and I have to manually change those on my own.
      My Computer


  4. Posts : 5,478
    2004
       #14

    Almighty1 said:
    Ah so basically, I should type it like this assuming I want it to be owned by user bob...

    takeown /f "D:\Problem Directory" /r
    icacls "D:\Problem Directory" /grant "%USERDOMAIN%\bob"F) /t
    Sorry I was updating my answer above while you were typing :) The cmd processor replaces %userdomain% and %username% with their real values at runtime so you don't need to change them.

    takeown is correct.

    icacls you can type in any of the following exactly as the are

    Code:
    icacls      "D:\Problem Directory" /grant "%USERDOMAIN%\%USERNAME%":(F) /t
    icacls      "D:\Problem Directory" /grant "%USERDOMAIN%\bob":(F) /t
    or even
    icacls      "D:\Problem Directory" /grant bob:(F) /t
      My Computer


  5. Posts : 1,093
    Windows XP/7/8/8.1/10, Linux, Android, FreeBSD Unix
       #15

    I see what you mean, so basically, the %username% is a variable that will just be the user who typed the command if I understand this correctly.

    And what I meant was in the GUI, I did enable child permissions except I noticed there will be some child files or folders where it says I don't have permission and then I will have to go change those manually.
      My Computer


  6. Posts : 1,093
    Windows XP/7/8/8.1/10, Linux, Android, FreeBSD Unix
       #16

    I gave the two commands a shot and it works way better than the GUI as the GUI will always not be able to change the ownership on some subfolders when I goto the screen that has the enable to all child and stopped on the problem ones until I hit cancel. :) Now, I have a question, I noticed after going to the two commands for C:\Program Files\WindowsApps for example, the new owner has no permissions in the Allow Column other than the Special Permissions. The Account Knwon (S-XXXX) user has Read & Execute, List Folder Contents, and Read Permissions.

    Is there a command line to give it Full Control? Also, I noticed on my system, for example, it is listing both the username with my Microsoft Login and a Account Unknown (S-xxxxx) and I basically have to delete the Account Unknown. I can goto the username with my Microsoft login and check full control then Apply and this is what happens when it tries to apply to child files/folders.

    W10 changes user rights on folders-2015-10-22_15-06-59.jpg
      My Computer


  7. jos
    Posts : 33
    W10-pro + W7-pro + XP-pro
    Thread Starter
       #17

    Back again and many trials/hours/days older.
    I found that the ownership of files->folders->partitions is increasingly more important as rights are permitted top->down. The owner can be found in "advanced". This means that a file can behave completely different after changing an higher folder or even the partition ownership. Still do not understand it completely but the owner SYSTEM (W7/W10 ??) is one to keep in mind.
    For instance: found on a used 2,5inch drive (that in earlier life was an active W7 startupdisk in a laptop) now connected by USB 2.0 that copying files for backup only for some files asked if they needed to be replaced. About 4 Gb files and folders were copied over and over again skipping control. Decided that the ownership of those files did not allow Windows to check/change settings. In the end I took ownership of the whole USB backup partition PLUS subfolders and Windows was changing settings for all folders and files for about 10 minutes. BUT even than some files in copies of installation CD/DVD's were not permitting to change settings. No idea why as I could see any connection between filename nor extension. The result however was that the weekly needed backup by hand of document/photo folders/files now was responding as expected. Only the new or saved after changing ones were copied and all others neglected. A backup is now done in 5 minutes instead of an hour.

    By the way W10 is behaving bad again. It closed down after messing up my HP printer on LPT1. In the internet I found this behavior over and over. W10 is pushing me to buy a new printer with USB/LAN/WIFI supported one that in the end does the same as my LPT-version.
    Also read that infrared ports are shut down too. Why am I so glad to have W7 still running in multiboot??????
    To discover that Linux after ugrading from Mint v13 to v17 on the same multiboot is behaving the same way......................
    So for as long as possible (unless MS decides different) I will use W7 and keep W10 asleep as only W7 offers me to be in command on which update will be installed or uninstalled.
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 22:25.
Find Us




Windows 10 Forums