[Gluster-users] Problem with apache and glusterfs

Chény Yves-Gaël ygcheny at neocom.fr
Wed Oct 19 12:20:58 UTC 2011


Hello,

i use glusterfs 3.2.3  to share directory between gnu/linux servers.
For directory/sub-directory/file , with user root, all seems to be OK.

Now, i try  to use the same architecture to share
directory/sub-directory for 2 apache servers.

For security reason (sftp no shell access) , i have one user per website
and apache user into the group of the user of the website.

So, in the normal case, with directory into the local disk , it's ok with :
( apache into the group group1 )

755 root.root web_root_dir

and

750 user1.group1 web_root_dir/user1/
750 user1.group1 web_root_dir/user1/www
750 user1.group1 web_root_dir/user1/www/index.php

for example.
But the exactly-same-configuration with a glusterfs isn't ok.

I have to make something like :

755 user1.group1 web_root_dir/user1/
755 user1.group1 web_root_dir/user1/www
750 user1.group1 web_root_dir/user1/www/index.php

Can someone explain me why ?

I have tested to mount -o bind the glusterfs into an over directory,
looking for some options ... etc ...
But no way :'(

Any idea ?

regards,
Yves



More information about the Gluster-users mailing list