Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Problem: After directory is auto-mounted, Web Server has no write permissions to it.

Question: How to auto-mount GlusterFS endpoint via /etc/fstab so that mount point belongs to www-data after it's mounted?

For now, the mount point belongs to www-data, but after mounting it turns to root.

# /etc/fstab /st glusterfs defaults 0 0

Seams like I cannot define user / group as mount options for GlusterFS, at least I don't see it when man glusterfs.


share|improve this question
Resolved - dir permission are inherited from destination directory. – Roman Newaza Jun 26 '12 at 3:12
up vote 1 down vote accepted

I'm pretty sure the solution is to chown it after it is mounted. Once you've mounted it, and it's back to root:root, chown it to what you need it to be. That should persist across remounts.

share|improve this answer
I'm creating automated DR system. Probably, if this couldn't be done over /etc/fstab, Bash could be of help... Or Udev rule. – Roman Newaza Jun 26 '12 at 2:44
I have fixed the issue. Directory permissions are inherited from destination directory. So I just changed that and it is mounted as I wanted now. – Roman Newaza Jun 26 '12 at 3:10

You should use the options below so that when the GlusterFS mount the volume the permissions are according to your needs

  • storage.owner-gid
  • storage.owner-uid

Example: gluster volume set VOL-NAME storage.owner-gid 100

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.