On Mon, Jul 02, 2007 at 12:45:37PM +1000, david wrote:
> On Mon, 2007-07-02 at 12:38 +1000, Scott Ragen wrote:
> > [EMAIL PROTECTED] wrote on 02/07/2007 11:05:17 AM:
> >
> > > Something new every day!
> > >
> > > A bunch of .NEF files downloaded from my Nikon Camera appeared as mod
> > > 700
> > >
> > > I did:
> > >
> > > [EMAIL PROTECTED]:~ $ sudo chmod -R 666 Desktop/070701.Reina/NEF/
> > > [EMAIL PROTECTED]:~ $ ls -l Desktop/070701.Reina/NEF/
> > > total 0
> > > ?--------- ? ? ? ? ? Desktop/070701.Reina/NEF/a03.NEF
> > >
> > > ... etc.....
> > >
> > > For some reason the u+x bit has to be set or nothing works. I've tried
> > > all the combinations and can't quite understand what's going on.
> > >
> > Hi Dave,
> > My guess is you are setting the permissions to 666 on both the directory
> > and files.
> > Execute is required to recurse into directories.
>
> Your guess is correct.... just needed a * at the end. I made a bad
> assumption about how the -R would work.
Cute chmod feature -- an uppercase X will apply if and only if
other bits are x; so ...
chmod -R a+gwX Desktop/070701.Reina/NEF/
is what you want
--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html