On Fri, 18 Nov 2011, wes wrote:
> On Fri, Nov 18, 2011 at 11:38 AM, Rich Shepard
> <[email protected]>wrote:
>
>> I inadvertently changed permissions on all directories and files in
>> my ~/ to 755 (including the dot files, of course). Only the
>> directories should have those perms; regular files should be 644.
>
> find -type f -exec chmod 644 {} \;
That's what I'd do too, except (and I'm sure wes knows this) you'll
want a directory as the first argument:
find $HOME -type f -exec chmod 644 {} \;
It'll pick up your dot files along with everything else that stat()s
as a regular file.
--
Paul Heinlein <> [email protected] <> http://www.madboa.com/
_______________________________________________
PLUG mailing list
[email protected]
http://lists.pdxlinux.org/mailman/listinfo/plug