[nmglug] chmod question

Anthony Martinez pi at pihost.us
Wed Sep 8 14:51:30 PDT 2004


On Wed, Sep 08, 2004 at 03:38:30PM -0600, Andres Paglayan 
carved this out of pure phosphors:
> I have a big tree of directories generated by a php script, it goes from 
> a/ to z/ and it has a/ to z/ within each one.
> I backuped and restore it (after changing the OS from Fedora to Debian)
> I want to change the permissions only in the directories without 
> affecting those of the files.
> Is there any way to do that recursively on the dirs but skiping the files?
> thanks,
> Andres
> 

There's a few ways to do this, but i'd use find | xargs like this:

find /path/to/stuff/ -type d -print0 | xargs -0 chmod 755

changing path to stuff, and the mode.

> _______________________________________________
> nmglug mailing list
> nmglug at nmglug.org
> http://www.nmglug.org/mailman/listinfo/nmglug

-- 
/* These are the most dangerous and useful defines. They do printk() during
 * the interrupt processing routine(s), so if you manage to get "flooded" by
 * irq's, start thinking about the "Power off/on" button...
 */
	2.2.16 /usr/src/linux/drivers/sbus/char/aurora.h




More information about the nmglug mailing list