55

I have an external hard disk which has 1 partition, formatted in NTFS. I use this drive on multiple computers with a different logins on different machines, Windows XP and Windows 7. All files are plain old files, not OS encrypted or compressed.

Every now and then Windows 7 does not let me access some files, citing permission problems. I can circumvent this per case by taking ownership and setting appropriate permissions. This, however, is tedious. Is there a simple way to tell Windows to not enforce or store any permissions on any file/directory on a partition?

4
  • 1
    The answer is a solution but it doesn't answer your question.
    – reconbot
    Sep 26, 2010 at 18:14
  • 1
    Yes. OP is asking about a similar feature to this toggle in iOS (ignore permissions on external HD): cnet.com/news/…
    – Jon
    May 22, 2016 at 16:19
  • 1
    Set permissions to "EVERYONE"
    – Moab
    Aug 15, 2016 at 21:18
  • @laggingreflex: Your bounty is not exactly in line with the original post. I answered the two question in the comments for the convert command, but added a new answer regarding permissionless disk formats.
    – harrymc
    Dec 14, 2017 at 20:17

6 Answers 6

42

Your external drive is formatted with the NTFS file system, which supports access restrictions.

Unfortunately, while some users and security groups are built-in to Windows with predefined Security IDs which are the same on all machines (such as Everyone), other users and groups have SIDs derived from the machine they're defined on.

To normalize the situation you should:

  1. While logged-in as Administrator, right-click the drive's root directory and select Properties.
  2. Click the Security tab, then the Advanced button.
  3. In the Advanced Security Settings dialog for the drive, click the Owner tab, then the Edit button.
  4. Click the Administrators group, check Replace owner on subcontainers and objects and click OK. If asked about replacing existing permissions with ones giving you Full Control, click Yes.
  5. Back in the Security tab and on the original Properties sheet again, click the Edit button, and in the Security dialog click Remove for all entries for all accounts listed under "Group or user names", except for the well-known ones of System, Administrators, Users and Authenticated Users.
  6. Click Add, and in the "Select Users, Computer or Groups" dialog under "Enter the object names to select", type Everyone and click OK. You should verify that Everyone has been added to the list.
  7. Click Everyone, check Full Control, then click on Apply.
  8. Click Advanced again to go back to the Advanced Security Settings dialog box and click the Change Permissions button. Check Replace permission entries on all child objects and click OK and OK.
  9. Click OK.

Be careful in the future not to allocate separate access permissions to sub-folders of the drive (leaving all permissions as inherited). If this happens again, repeat the step for "Replace permission entries on all child objects".

Be mindful of the fact that under Windows 7/8 the Guest account is not part of the Everyone group. If you need it, you'll have to add Guest as above for the Everyone group.

If you encounter problems with UAC, try using Explorer via "Run as administrator".

12
  • 2
    The above is the correct solution and really the only easy way to deal with external NTFS drives that may used by multiple user accounts or on different machines. If there are files you want private you can always use something like TrueCrypt to make a folder and it's contents private.
    – jtreser
    May 14, 2010 at 11:04
  • 1
    +1 - "Everyone Full Control" or "Administrators Full Control / Users Modify" is the easiest way around this. Beyond that, it's a matter of making sure something doesn't decide to mess with the ACLs.
    – afrazier
    May 14, 2010 at 13:53
  • Does it specifically have to be 'Administrator' that takes ownership of the external drive's root folder or is a user with admin rights good enough? Because I can't seem to get this to work and I don't have the person with the Administrator password on hand. At least I can still access the drive just fine on my Linux laptop... (Whoever decided that putting ACLs on external hard drives was a good idea should be shot)
    – kahen
    Aug 27, 2011 at 20:22
  • 2
    UAC... my sworn enemy. 2 reboots later and a takeown /f e:\ /r /d y later, and everything is in order again.
    – kahen
    Aug 27, 2011 at 21:22
  • 2
    @JonBentley: You probably have problems with UAC. Try using Explorer via "Run as administrator".
    – harrymc
    Oct 29, 2013 at 17:42
11

The example above:

takeown /f f:\ /r /d y

will assign owner to the current user. To assign owner to the administrators group add the /a option, For example:

takeown /f f:\ /a /r /d y

This will accomplish steps 1-4 of harrymc's solution.

Note that /d y is localisation dependent, with German localisation it is e.g. /D j.

1
  • I don't believe this answers the question. Noone gives a f about some current user. He wants it to be usable on multiple different computers (i.e. also among different users) without constant hassling with permissions.
    – Tomas
    Dec 8, 2022 at 10:49
10

takeown is the easiest tool to get rid of this braindamaged permission system.

start a cmd as administrator (right-click cmd icon, run as admin), and enter

takeown /f [root dir of drive] /r /d y

example for drive F:

c:\>takeown /f f:\ /r /d y
1
  • 3
    Watch out for things like junctions in Windows Vista/7, it ended up recursing in to F:\Documents And Settings for me, which linked to C:\Users. Sep 6, 2013 at 22:53
2

Of course this was asked a long time ago, but people still may see this if they put in the right search (like I did). There are a couple of newer methods of dealing with this that have since been developed.
The first is to use the convert command. I believe it's available with Windows 7 & above. Open a command prompt (I'd advise opening it as administrator if possible). Then enter:

convert X: /FS:NTFS /NoSecurity

where X: is the letter of your external drive. This will keep the NTFS format but convert security on all files & folders to allow access by all users. The other option is to reformat your drive to exFAT. You'll want to backup any existing files elsewhere as this will wipe the disk. You can do this from the Windows drive format GUI. IF you have Win7 or greater it should be there.

Right click your drive in the explorer view , click "Format", pick "exFAT" in the File System drop-down and click Start.

The advantages of the exFAT system is there are no file size or partition size limitations, and it's fully supported (Read AND Write) by both Windows and newer Mac OS's (and Linux distro's too).

4
  • (1) You say “I'd advise opening it as administrator if possible”.   Is there any possibility that this command could succeed if run by a non-privileged user?  (2) You say “This will keep the NTFS format but convert security on all files & folders to allow access by all users.”   Does that apply to files that are created in the future? Nov 16, 2017 at 1:47
  • How long does it take? Is it quicker than resursive takeown? Dec 14, 2017 at 15:25
  • 1
    convert /NoSecurity will need to be run again on each use, and administrator permissions may be required as it locks the disk. For exFAT: The convert command description says: "Volumes converted to the NTFS file system cannot be converted back to FAT or FAT32", so because exFAT is just FAT64, it might not be possible to convert NTFS to exFAT.
    – harrymc
    Dec 14, 2017 at 20:03
  • For me on Windows 10, when the drive is already NTFS, the command just says Drive X: is already NTFS. So it looks like the command is not suitable for adjusting security settings on an existing NTFS drive. @harrymc What do you mean with "will need to be run on each use again"? Did the utility behave differently in past versions?
    – kdb
    Apr 10, 2021 at 8:00
0

About Recur-sing, If you find a shortcut within a folder that goes back to that folder simply reset the permission of the shortcut to deny permission to whatever is causing the problem. most likely in the app data area under users. otherwise you get irritating things like unlimited file paths mucking up archiving or copying or whatever. One of the most irritating problems next to the security stuff itself. If one of these OS makers really believed in liberty to the users they would develop an NTFS with no security descriptors and let the users do what they will.

0

User @laggingreflex asked in his posted bounty about file formats that will not cause problems regarding permissions when moved between computers.

I would suggest in this case to format the disk as FAT32, which lacks totally the notions of security and permissions. Its disadvantage is that it is limited to files of size up to 4GB in size. Its advantage is that it's universally supported on all versions of Windows, Mac, Linux, game consoles, and practically anything with a USB port.

If the 4GB limitation is unacceptable, the exFAT format is basically FAT64. Its disadvantage is that it's proprietary and requires licensing from Microsoft. It works with all versions of Windows from XP Service Pack 3 and above (and/or separate installation of Windows XP Update KB955704), and on modern versions of Mac OS X, but requires additional software on Linux.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .