Macos – How to set the permissions on all files and folders on the NAS drive using the Mac

ftpmacosnasosx-snow-leopardpermissions

I've been having problems using the Filezilla FTP program to copy information from my computer to my D-Link 321 NAS drive.

As it turns out, it looks like when I created some of the files/folders using my mac and some of the files/folders using my PC, it created a problem with the permissions.

I found using this command in terminal seems to help unlock the folders so I can write to them, but all of the files nested in the folders also seem to have permissions that stop me from doing what I want to do.

chmod 777 /Volumes/Volume_1/<foldername>

Is there a command I can run that will make all of the folders and files on my NAS drive accessible (add, delete, rename) on my PC, my Mac and using an FTP client?

Also, do you recommend a setting other than 777 for all my folders and file? Why?

Thanks!

Best Answer

Yes, you can use

chmod -R u+rwX,g+rwX,o+rwX /Volumes/Volume_1/<foldername>

The -R flag applies the change to all folders and files recursively. Using the rwX symbolic mode will add read and write (rw) permissions for the user (u), group (g), and other users (o), and optionally permit execution (X) of files if they are already executable for somebody or if they are a directory. (This is equivalent to the 777 mode, except with a smarter executable bit.)

You may have to run this command as root by prefixing it with sudo if you get any 'permission denied' errors when running it.

Related Question