Windows 10: Is TAKEOWN of a whole User tree dangerous?

Discus and support Is TAKEOWN of a whole User tree dangerous? in User Accounts and Family Safety to solve the problem; I'm waiting for delivery of physical parts to repair laptop A The user urgently needs her data on laptop B until A is fixed (or thrown away &... Discussion in 'User Accounts and Family Safety' started by spilly, Aug 23, 2017.

  1. spilly Win User

    Is TAKEOWN of a whole User tree dangerous?


    I'm waiting for delivery of physical parts to repair laptop A
    The user urgently needs her data on laptop B until A is fixed (or thrown away & replaced)
    What I did
    I attached via USB the System disk from A to temporary system B, where it was F: drive
    Then to enable explorer to show me the data I used TAKEOWN
    Code: TAKEOWN /F F:\USERS\<username> /R[/quote] (I should have added something to discard all the success text
    Unfortunately the scope included APPDATA )My question
    WHERE are the permissions stored?In the registry of system B running TAKEOWN ?
    OR
    In the MFT of the the F: drive, which I hope to boot again in system A after repair ?
    If A's MFT is changed, I fear I may have messed up the system disk when it is rebooted after repair. Have I?
    If permissions are recorded in TEMP system B's registry, I think no harm should have been done
    Can you please clarify or give other guidance for the future - e.g "a better would have been...."

    Thanks in advance


    Amateur system maintainer for local friends

    :)
     
    spilly, Aug 23, 2017
    #1

  2. Windows Firewall

    I have windows 10. I also have Norton 360 and Family Tree Maker. Recently I have no luck in connecting to the internet from my Family tree Maker program. I previously was able to connect the family tree maker with no problem. I am not sure what has
    happened or how to correct the problem. Can you help. I am getting very frustrated with this whole issue. Is it Windows, Norton or Family tree maker that is blocking the internet access.
     
    MarciaVandenBerg, Aug 23, 2017
    #2
  3. windows.old

    Sorry people, NO RESULT.

    Even with CCleaner NOWAY,

    The problem is the dam .{682B3199-76C3-4745-B7AE-FC13F6676421} FILE in the Temp map.

    In the DOS prompt with

    Takeown/F C:\Windows.old\Users\

    janh\

    AppData\

    Local\

    Temp\.{682B3199-76C3-4745-B7AE-FC13F6676421}

    This file even with Takeown is NOT deleteable

    Regards,

    Jan
     
    JanH440524, Aug 23, 2017
    #3
  4. lx07 Win User

    Is TAKEOWN of a whole User tree dangerous?

    Permissions and ownership are nothing to do with the registry on the machine that runs the command - they are part of the NTFS file system and are stored in the MFT of the volume concerned.

    What you didn't do (which would be worse) is after taking ownership grant yourself permissions so at the moment your only issue is everything is owned by the wrong person. From a functionality point of view, this probably doesn't matter much - the Administrators group will still have authority to write to their files and so on.

    What you have done is changed the ownership (stored on drive A) from whatever it was to your user on machine B. If you look at the owner you should see it. You can see the owner using get-acl in powershell.

    Code: PS C:\WINDOWS\system32> get-acl C:\Windows Directory: C:\ Path Owner Access ---- ----- ------ Windows NT SERVICE\TrustedInstaller CREATOR OWNER Allow 268435456... PS C:\WINDOWS\system32> get-acl 'C:\Program Files\WindowsApps\' Directory: C:\Program Files Path Owner Access ---- ----- ------ WindowsApps NT SERVICE\TrustedInstaller NT AUTHORITY\RESTRICTED Allow ReadAndExecute, Synchronize... PS C:\WINDOWS\system32> get-acl 'C:\Program Files\WindowsApps\Microsoft.3DBuilder_15.0.2223.0_neutral_~_8wekyb3d8bbwe\' Directory: C:\Program Files\WindowsApps Path Owner Access ---- ----- ------ Microsoft.3DBuilder_15.0.2223.0_neutral_~_8wekyb3d8bbwe NT AUTHORITY\SYSTEM BUILTIN\Users Allow ReadAndExecute, Synchronize... PS C:\WINDOWS\system32>[/quote] This means that whereas before somethings were owned by SYSTEM or TrustedInstaller or the users who used machine A they are now all owned by "you". In this case "you" is a user that doesn't exist on machine B.

    • Will it boot again? Yes, most likely.
    • Is it compromised? I'd say yes but only because Microsoft set different owners for a reason.
    • Can you fix ownership? No. Unfortunately (unless you backed them up before) you can't. There are various old utilities which will reset ownership and permissions based on the parent folder but these are from XP days and no longer applicable. For example appdata and WindowsApps (as you can see above) have specific non-inherited permissions.

    Best case (in future) is not to take ownership. A better way to do what you are trying would be (while signed on as an administrator) copy the data somewhere else. You can then play with permissions to your hearts content. If you are changing data copy it back via C:\Users\Public then (when signed onto the machine again) move it from there to the user folder. This will get rid of permission/ownership issues resulting from access from an external system.

    What I would do now if it was my PC is copy the data somewhere, clean install, sign onto user account and copy it back.

    If it was someone else's PC not at risk of anything (like my young sons for example) I'd perhaps just leave it as I'm going to have to do a clean install eventually anyway. I think it will still work OK but you might run into problems down the road as new folders are created and inherit ownership for a user that doesn't exist.
     
  5. spilly Win User
    That's a MOST helpful reply, thank you.
    I thought permissions probably HAD to be in the MFT index on the disk.

    I used TAKEOWN because when the drive was attached to Machine B for temporary use, I couldn't access any of the user libraries on the "foreign" disk. (at least I thought I couldn't read or see sub-folders. It's a bit late now)
    I couldn't make a copy beforehand (e.g. to Public docs) with the drive as a running system because the hardware had a fault and would not boot.
    So I was up the creek without a paddle.

    Instead of TAKEOWN, could I have given myself Read permissions with ICACLS on the whole of the user tree ? Would that have been safer?
    Could you please tell me the command (I'm a coward with ICACLS!)

    But all is not lost. I have now learned that Win 10, Anniversary edition was re-installed last year in Italy in Italian language, so I can see a clean install on the horizon. I have a USB with Creators v 1703. It's the plain "Windows 10" edition in English.
    FWIR, the Creators USB will refuse to update the Italian language system. Is that right? If so, it's a clean install.

    I'd much prefer an in-place update because all of the installed apps are maintained, & I don't have to scrabble around downloading later versions and hunting for valid product keys. I don't know of any way round this. I've got to use Belarc Advisor, and a clean burn to a blank disk - Having secured the user data elsewhere first, of course.

    Any tips much appreciated


    BTW, neither of the two systems used as above belong to me, so I want to get it right.
     
    spilly, Apr 5, 2018
    #5
Thema:

Is TAKEOWN of a whole User tree dangerous?

Loading...
  1. Is TAKEOWN of a whole User tree dangerous? - Similar Threads - TAKEOWN whole User

  2. Takeown failing to own folder.

    in Windows 10 Gaming
    Takeown failing to own folder.: So I have this old account that I don't use on my local drive C: and want to delete it.But I can't because I don't have permission. I used the takeown command with cmd.Cmd running as Administrator and using the command: takeown /f <folder> /r /d yThe error I get is "INFO:...
  3. Takeown failing to own folder.

    in Windows 10 Software and Apps
    Takeown failing to own folder.: So I have this old account that I don't use on my local drive C: and want to delete it.But I can't because I don't have permission. I used the takeown command with cmd.Cmd running as Administrator and using the command: takeown /f <folder> /r /d yThe error I get is "INFO:...
  4. Undo Takeown command

    in Windows 10 Network and Sharing
    Undo Takeown command: Using command line, with Takeown, I changed ownership of all Local files to administrator and now some apps stopped working. Is there a way to undo that? https://answers.microsoft.com/en-us/windows/forum/all/undo-takeown-command/a00e0da6-442d-460f-b670-7c5eb364b8dd
  5. Takeown, icacls doesn't work!

    in User Accounts and Family Safety
    Takeown, icacls doesn't work!: I own folder and i have full control. Yet i can't move it. It is folder in ProgramData of a program, which is taking a lot of space. It says i need administrator permissions, while i am on full admin account! It says exactly: "you need permission to perform this action, you...
  6. Takeown, icacls doesn't work!

    in Windows 10 Support
    Takeown, icacls doesn't work!: I own folder and i have full control. Yet i can't move it. It is folder in ProgramData of a program, which is taking a lot of space. It says i need administrator permissions, while i am on full admin account! It says exactly: "you need permission to perform this action, you...
  7. Takeown command not working

    in Windows 10 Network and Sharing
    Takeown command not working: My account is an admin on my system, and I would like to remove a *certain* intrusive file from my computer, however windows has other ideas and continually blocks me from touching the file. After trying for about half an hour to remove this file through the usual ways...
  8. danger in transfering whole user directory from old PC to new PC

    in Windows 10 Installation and Upgrade
    danger in transfering whole user directory from old PC to new PC: Are there any problems if I copy and paste the entire user directory from an old WIN 10 system to a new Win 10 system - different hardware...
  9. How to force Explorer to build icon cache for a whole drive or tree?

    in Windows 10 Customization
    How to force Explorer to build icon cache for a whole drive or tree?: I have a huge image collection, spanning literally thousands of folders. The collection is pretty static - meaning once a file is placed in there, it stays unchanged. When browsing the collection in Explorer, it takes a long time for Windows to generate the large icons...
  10. takeown problem

    in User Accounts and Family Safety
    takeown problem: Hi I have Windows 10 v1511 Enterprise 64 bit with two Microsoft account. From the Command Prompt (run as administrator), I tried to write Code: takeown /S localhost /U "<Microsoft_account_(E-Mail_Address)>" /P <User_password>" /F "<Directory_path>" /R /A /D...