why it doens't open ?

Jack Coates jack at monkeynoodle.org
Thu Nov 14 18:47:00 CET 2002


On Wed, 2002-11-13 at 16:01, Heiko Berges wrote:
> On Wed, Nov 13, 2002 at 09:16:35PM +0100, I wrote:
> > On Wed, Nov 13, 2002 at 10:29:17AM -0800, Jack Coates wrote:
> > > chmod a-x directory will make the directory break.
> > > 
> > > chmod a-x directory/* is better, but will break subdirectories.
> > > 
> > > find directory -type d | xargs chmod a+x $1 will fix them.
> > 
> > 
> > even better: 
> > 
> > 	find directory -perm -111 -exec chmod a-x {} \;
> 
> 
> Of course this should be
> 	
> 	find directory -type f -perm -111 -exec chmod a-x {} \;
> 
> Sorry.
> 

No biggie -- I actually avoid the -exec flag because the {} \; syntax is
nearly impossible for me to remember or make sense of. It's just easier
for me to use xargs $1, but find -exec is a lot more portable.

> 
> > does it all at once and doesn't break for filenames with spaces
> > in it. You may don't want this because it walks through all
> > subdirectories.
> > 
> > If you have gnu fileutils you can do :
> > 
> > 	chmod a-X directory/*
> > 

Now that's nice -- off to the man page :-)

> > 
> > 	Heiko
> > _______________________________________________
> > Xfce mailing list
> > Xfce at moongroup.com
> > http://moongroup.com/mailman/listinfo/xfce
> _______________________________________________
> Xfce mailing list
> Xfce at moongroup.com
> http://moongroup.com/mailman/listinfo/xfce
-- 
Jack Coates
Monkeynoodle: A Scientific Venture...




More information about the Xfce mailing list