I've run into this before... sorry, I don't have the exact incantation at my disposal (from notes, nor from memory)... but I do remember that I used xargs and a pipe along with chmod.
Maybe a gander at the xargs man page will send you in the right direction. Also, it's a common enough issue that you can probably force Google to cough up an answer for you... but, of course, it can be finicky about needing just the right search terms. HTH, best of luck. -Rick 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. > > I want to correct this as quickly as possible, but I cannot find an > option > in the chmod man page that will ignore directories while changing all other > files. There's probably a scripting approach using file and exec, but I've > not done anything like this before so guidance on how to restore the > appropriate perms will be very helpful. > > Rich > > _______________________________________________ > PLUG mailing list > [email protected] > http://lists.pdxlinux.org/mailman/listinfo/plug > _______________________________________________ PLUG mailing list [email protected] http://lists.pdxlinux.org/mailman/listinfo/plug
