How do folder permisions on a hard drive transfer between computers?

2

1

I'm running Windows 7 and have restricted access to a few of my folders through the Security Tab on the Folder Properties form. I've given full control to my account, administrators, and SYSTEM. But removed access for USERS.

This is working fine. But I'm wondering what will happen if my computer crashes/melts/is completely unrepairable but the hard drive is undamaged? Will I be able to access the files in these folders when the hard drive is plugged into another computer?

aireq

Posted 2010-07-14T17:56:46.177

Reputation: 621

Answers

2

An account is identified by random Security Identifiers (SID) generated for the computer and account name, thus the other computer will have no access. But don't worry, as those permissions don't apply you can add permissions yourself through the GUI or using CLI:

cacls X: /G Account:F /T
takeown /F X: /U Account /R

Where Account is an administrative account on the other computer and X: the path.

Tamara Wijsman

Posted 2010-07-14T17:56:46.177

Reputation: 54 163

What if you plug the hard drive into another computer with an identical computer name while logged in as a user with an identical account ID? – aireq – 2010-07-15T06:07:08.670

@aireq: Doesn't help. A security id is just a number, with no relation to the name. – harrymc – 2010-07-15T10:37:14.977

I have corrected my answer to make it less confusing, in a lower level a SID (long string) is generated which will be used to compare two accounts with each other, this string is guaranteed to be unique and it is very unlikely to find another account with the same SID. Just to show you an example, mine is S-1-5-21-661269417-1357230852-3651211512-1001. For information to a great detail see http://technet.microsoft.com/en-us/library/cc778824(WS.10).aspx. You can discover your own SID with http://technet.microsoft.com/en-us/sysinternals/bb896769.aspx if you want to...

– Tamara Wijsman – 2010-07-15T10:40:00.400

Ah ok so Windows tags the files/folders on the drives with the SID's of the accounts and what what access they should have? Yet on another computer users that are administrators can take ownership of files or changed security settings regardless of what the files are tagged with? – aireq – 2010-07-16T09:00:57.563

Yes, the administrator can always take over the permissions, even when you remove all permissions on the computer itself. The SIDs are stored in the Master File Table according to the Wikipedia page for NTFS: "$MFT describes all files on the volume, including file names, timestamps, stream names, and lists of cluster numbers where data streams reside, indexes, security identifiers, and file attributes like "read only", "compressed", "encrypted", etc." – Tamara Wijsman – 2010-07-16T10:36:47.593