[plug] chown and chmod questions.

Timothy White weirdit at gmail.com
Fri Jan 12 08:14:47 WST 2007


On 1/11/07, Carl Gherardi <carl.gherardi at gmail.com> wrote:
> On 1/11/07, Jonathan Young <jonathan at pcphix.com> wrote:
> > On 1/11/2007, "Lee Jamieson" <leejam at gmail.com> wrote:
> > >Do I put lee:lee as the username and group?
> >
> > Should work.  I personally use -R instead (just fewer keystrokes) and
> > often you can use a group such as lee:administrators or similar, but
> > what you have is OK.
>
> Spot on: chown -R user:group directory
>
> > >"chmod --recursive u+rw <directory>"
>
> Thats the way i'd usually do it so I dont accidentally reset
> additional permissions that others may have set on  files. Not so
> important on a single user system though.
>
> > Again, I use chmod with -R on the end.  I also tend to use 755 775 etc
>
> As Alex said, that will make everything executable , something you
> probably dont want.

I probably should have made it clear before...

chmod u+rXw will make all normal files +rw and all directorys +rwx. :p

>From the man pages...
"execute only if the file is a directory or already has execute
permission  for  some user (X)"

Tim
-- 
Linux Counter user #273956
Don't email joeblogs at scouts.org.au



More information about the plug mailing list