|
|
Terminal.app to the rescue again
In Terminal.app it would be very easy to set permissions on a lot of items. I've done it frequently, as I'm sure a lot of other unix guys have. For instance,
find ~/Sites/ -type d -exec chmod a+rwx "{}" \; will give all of the folders in your personal web page the ability to be listed through a web browser. Similarly find ~/Public/ -type f exec chmod 644 "{}" \; will make all the files in your Public folder read-only to other users, but read-write to the file owner. sudo chown -R user:group ~/Public/ can be used to change ownership of all files in your Public folder, and of course any other folder can be substituted.
Terminal.app to the rescue again
Or it's even easier if you use zsh as your shell:
chmod a+rwx ~/Sites/**/*(/) The **/* lists files and folders recursively in all subfolders (in the same way that * lists those in the current folder), and the (/) restricts the results to folders. ( (.) would restrict to plain files, for example.) I still don't understand why more people don't use zsh -- after all, it's not only free and open source, but it comes installed on every Mac! ---
Terminal.app to the rescue again
Much more useful:
This makes all the files readable by everybody. In addition, things that are executable, including directories (!), are made executable by all.
Using the lower case "x" in the command would make files executable, which is generally not wanted in the Sites folder...
Terminal.app to the rescue again
sigh...
That should have been...
|
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.05 seconds |
|