[HCoop-Help] [HCoop-Misc] wordpress install

Davor Ocelic docelic at hcoop.net
Mon Mar 16 20:09:52 EDT 2009


On Mon, 16 Mar 2009 17:07:57 -0400
Adam Chlipala <adamc at hcoop.net> wrote:

> Arlen Abraham wrote:
> > Ok, fixed it by recursively setting acl for my user.daemon like so
> >
> > find ./ -type d -exec fs setacl {} account_name rlidwka \; -print
> >
> > How do I avoid this in the future?
> >   
> 
> New directories always inherit the ACLs of their parent directories.  
> Keep this rule in mind when creating directories and you should be
> fine.

Right. In addition to Adam's advice: 

1) You probably didn't notice the difference between "fs" and "fsr".

Fsr is recursive so you don't have to do tricks on the command
line with find; just invoke fsr sa PARENT_DIR USER PERMS and it'll
do what it has to do.

2) To elaborate on Adam's explanation: if you unpack your tarball
somewhere, the permissions will be inherited from the parent dir.
But when you move that directory somewhere else, it'll take its
permissions with it, not inherit from the parent dir where you
move it to.

So, solution is to always unpack the tree in the directory where
you intend the files to be, or to just quickly call "fsr" (recursive)
on the files after moving/copying.

Cya,
-doc



More information about the HCoop-Help mailing list