FAT and FAT32 file systems support file attributes like "read only". How can I change those under OS X? The standard chmod command does not seem to do the trick. How else can I do this?
MacOS – How to change FAT32 file attributes under OS X
fat32filesystemmacos
Related Question
- MacOS – Need to burn FAT32 CD from Snow Leopard
- MacOS – OSXFUSE, BindFS and HFS+ extended file attributes
- MacOS – El Capitan Fat32 partition problem
- Windows FAT32 – Fix Unreadable File System on macOS
- macOS High Sierra – Available ACL Attributes in Mac OS 10.13
- How macOS Implements Symbolic Links in Mojave on FAT32 Filesystems – Unix Filesystem
- MacBook – Can’t write to the FAT32 USB drive on Mac
Best Answer
Under OS X, the FAT/FAT32 file system Readonly attribute is set when a file is locked. When a file is viewed in the Finder application, a small lock will appear on the file icon. This Readonly attribute can be set or unset by highlighting the file and then selecting "File->Get Info" from the menu bar. The Readonly attribute can then be modified by checking or unchecking the box labeled "Locked".
This also can be done from the command line. First, to view the attributes use the command below.
To set the Readonly attribute use the following command.
To reset the Readonly attribute use the following command.
To set the Hidden attribute use the following command.
To reset the Hidden attribute use the following command.
To set the Archive attribute use the following command. Note: this command is the opposite of what one would expect to enter."
To reset the Archive attribute use the following command. Note: this command is the opposite of what one would expect to enter."