Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Is it possible to chmod a file on an exFAT formatted drive? I'm on Mac OS X and I would like to set the permissions to not be 777. Is this possible?

What I'm really trying to do is set the permissions of an SSH key on a exFAT flash drive to be 600. Any help would be greatly appreciated.

share|improve this question

1 Answer 1

up vote 6 down vote accepted

exFAT, as an extension of FAT, is not capable of storing discretionary access control metadata. This is why all the files on an exFAT volume appear to be 777 permissions. It's basically saying "this volume is wide-open because we can't not make it wide-open due to the file system format".

The short answer is no. The long answer is that you can create another filesystem within the exfat file system using, e.g. dd (to create a sparse file) and then use filesystem-specific tools to create a filesystem on the file. Then you can mount it. The Mac OS X HFS+ native filesystem would work fine, since your / volume is definitely capable of discretionary access controls and any other filesystem features that OS X relies on. But that won't be portable across platforms (maybe to Linux, but not to Windows).

share|improve this answer

Your Answer

 
discard

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.