What your looking for is the -R option.
Example:
chmod -R 755 /home/jim
since web files should be 644 and dirs 755 i like
to do this and sometimes its helpfull..
chmod -R 644 /home/jim (which is where i have my
domains web pages)
then i go in to jim and change all the dirs to
755..
BE CAREFULL WITH -R which stands for recursive. I
once did a chmod -R 644 * and i THOUGHT i was in the right dir. turns out i was
in the / dir... good way to trash an entire server in about 10 seconds... but
that was like 3 years ago..im feeling much better now...LOL..
Jim.
|
- OT: Bulk changing of file permissions/owners Alexander Shaw
- Re: OT: Bulk changing of file permissions/owners ABrady
- Re: OT: Bulk changing of file permissions/owners Dave Ihnat
- Re: OT: Bulk changing of file permissions/owners Gordon Messmer
- Re: OT: Bulk changing of file permissions/owners Cameron Simpson
- Jim Bija