home Mail List
Info
Info
Meetings
Goals
Upcoming
Projects
FAQ
Security
Links

[Date Prev][Date Next] [Chronological] [Thread] [Top]

[NMLUG] Re: [nmglug] chmod question



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@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



Please send sugestions and comments to webmaster@nmlug.org.
Valid XHTML 1.1! Valid CSS! Powered by Debian Powered by Apache