02-24-2007, 07:23 AM
Read only for who? Normal users should only have read/write access in their /home directory, /tmp and possibly something like /local. If you need to write files elsewhere it should be done as root.
If you really need to change permissions for a directory (and make sure you really want to since Unix file permissions are that way for a reason) you can do this:
Which will recursively apply read/write permissions (with execute for all things which already have it) to the given directory. It is fairly rare that you would want to do this though.
If you really need to change permissions for a directory (and make sure you really want to since Unix file permissions are that way for a reason) you can do this:
Code:
chmod a+wrX -R some_directory
esus saves.... Passes to Moses, shoots, he scores!