- To: david <david@xxxxxxxxxxxxx>
- Subject: Re: [SLUG] permission oddity
- From: Matthew Hannigan <mlh@xxxxxxxxxx>
- Date: Mon, 2 Jul 2007 17:03:25 +1000
- Cc: slug@xxxxxxxxxxx
- User-agent: Mutt/1.5.14 (2007-02-12)
On Mon, Jul 02, 2007 at 12:45:37PM +1000, david wrote:
> On Mon, 2007-07-02 at 12:38 +1000, Scott Ragen wrote:
> > slug-bounces@xxxxxxxxxxx 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:
> > >
> > > david@test:~ $ sudo chmod -R 666 Desktop/070701.Reina/NEF/
> > > david@test:~ $ 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