Apple Intelligence is now available on iPhone, iPad, and Mac!

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

The correct syntax for a recursive chmod command in Terminal

I need to set recursive permissions on an external HDD to '777' or 'all read&write'.

I have tried all of the following commands in Terminal:

sudo chmod 777 -r /Volumes/...
sudo chmod -r 777 /Volumes/...
sudo chmod a+rw -r /Volumes/...
sudo chmod -r a+rw /Volumes/...

...all of which being back a 'no such file or directory' error, e.g.

sudo chmod 777 -r /Volumes/232Gb
chmod: -r: No such file or directory

Can anyone confirm the correct syntax for this command?

Thanks in advance...

Message was edited by: ChippyDeluxe

MacBook, Mac OS X (10.6.6)

Posted on Apr 7, 2011 4:36 AM

Reply
Question marked as Top-ranking reply

Posted on Apr 7, 2011 5:52 AM

Questions about the shell belong in the UNIX forum, but the answer is

sudo chmod -R 777 /Volumes/theVolume

This is almost certainly not what you should do, but that wasn't your question.
19 replies

Apr 7, 2011 3:33 PM in response to Linc Davis

Thanks for the advice.

The setup I have now doesn't differ from when I was using my old iMac.
1 ext HDD with Time Machine and other folders, backing up to another ext HDD using iBackup. This worked without issue. Now, i have 1,000s of folders I cannot access without manually amending the permissions and the backup stalls (I've tried a few backup utilities, they all do the same).

Have I created an irreparable fault by using an external HDD as both storage and as a Time Machine backup?

Apr 7, 2011 3:43 PM in response to ChippyDeluxe

You don't back up a backup. You make independent backups to two or more different devices.

Original data don't belong on the same volume, or the same physical device, as backups. For one thing, it intereferes with Time Machine's management of free space on the backup volume. If you want to do it, that's your prerogative, but then I have nothing else to suggest.

The correct syntax for a recursive chmod command in Terminal

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.