Home » Questions » Computers [ Ask a new question ]

How to recursively change sharing/permission of a folder in Mac OS X

How to recursively change sharing/permission of a folder in Mac OS X

Is there any Mac OS X tools or scripts which allow me to change sharing/permission properties of files and subfolders in a folder recursively? For example, to let everybody or a specific user able to read and write, read only, or write only.

Asked by: Guest | Views: 94
Total answers/comments: 2
Guest [Entry]

"Try the chmod command. For example, if you have a directory name mydir, the following command will enable read/write for that mydir recursively.

$ chmod -R +rw mydir

For more information:

$ man chmod"
Guest [Entry]

"You want to use the chmod and chown commands.

If I remember correctly, you can change the permissions like this:

chmod -R +a ""joshhunt allow read"" /some/file/or/folder/
chmod -R +a ""Guest deny read"" /some/other/folder/
chmod -R +a ""Guest deny write"" /some/other/folder/

For more details one these commands, look up their respective man pages in Terminal:

man chmod
man chown"