Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have an NTFS partition shared between Windows 7 and Fedora 15. I added a .NTFS-3G/UserMapping file to map my main user/group in Windows to my main user/group in Linux. This was fine until I booted to Windows and back to Linux, and then all files and most directories (except for .NTFS-3G and $RECYCLE.BIN) had the mode 0755.

I think I did something wrong. Has anyone had a similar problem? How do I get permissions on Linux to stay consistent between reboots?

share|improve this question
up vote 3 down vote accepted

This is normal. When you added the UserMapping file, it didn't became active immediately – you were still seeing all permissions as set by the fmask/dmask mount options.

When you rebooted (or more accurately, when the filesystem was mounted again), the ntfs-3g driver found your UserMapping file and switched to "NTFS permissions" mode, in which the permissions shown in ls and used by Linux are in fact the same as those used by Windows. It is impossible to translate some NTFS ACL combinations to POSIX ACLs, but the basic "read/write/execute" bits exist in both.

In other words, you are seeing all files being executable because they are executable in Windows too. This has always been the default, since Windows primarily uses the filename extension for executable files.

share|improve this answer
So at this point, I should just fix the permissions to how I want them, and they'll stay? – Andres Riofrio May 3 '12 at 6:23
You could do that. But it's better if you do that in Windows, since it allows configuring inheritable ACLs - you can make it automatically add +x to directories only. Remember, however, that Windows respects the +x/Execute permission as well - you cannot run an .exe that lacks +x. – grawity May 3 '12 at 7:00

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.