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
foo.com:/st /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
.
Thanks!
Best Answer
I'm pretty sure the solution is to
chown
it after it is mounted. Once you've mounted it, and it's back toroot:root
, chown it to what you need it to be. That should persist across remounts.