[Linux-disciples] Easy Question - Changing Permissions a list of
files
Stephen R Laniel
steve at laniels.org
Mon Nov 14 09:40:47 EST 2005
On Mon, Nov 14, 2005 at 09:29:11AM -0500, Jason Smith wrote:
> I am sure there is a way to say "Please change the permissions to all
> the files in this directory to ugo+rwx" or some such.
You can do
chmod -R ugo+rwx dirName
where 'dirName' is the name of your directory.
Note that the sexy way to do the above command is
chmod -R 777 dirName
though you'd really never want to be that liberal in your
permission-granting. Probably the safest thing to do, in
that vein, would be something like
find dirName -type d -exec chmod +x '{}' \;
followed by
find dirName -not -type d -exec chmod +rw '{}' \;
--
Stephen R. Laniel
steve at laniels.org
+(617) 308-5571
http://laniels.org/
PGP key: http://laniels.org/slaniel.key
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.bostoncoop.net/pipermail/linux-disciples/attachments/20051114/3eefc824/attachment.pgp
More information about the Linux-disciples
mailing list