From 072425454c76c9d37b436a91d3d64a953adff92c Mon Sep 17 00:00:00 2001 From: Prashanth Pai Date: Thu, 16 Jun 2016 17:25:55 +0530 Subject: Document mounting as non-root user Change-Id: I58baf2b6b24bf07707be133508b5d1213744562e Signed-off-by: Prashanth Pai --- doc/install.rst | 32 +++++++++++++++++++++++++++++++- 1 file changed, 31 insertions(+), 1 deletion(-) (limited to 'doc/install.rst') diff --git a/doc/install.rst b/doc/install.rst index cbe7c7d..d256376 100644 --- a/doc/install.rst +++ b/doc/install.rst @@ -1,5 +1,5 @@ Installation ------------- +============ Install glusterfs: @@ -14,3 +14,33 @@ Install libgfapi-python from source: $ git clone https://review.gluster.org/libgfapi-python $ cd libgfapi-python $ sudo python setup.py install + +Mount GlusterFS volume as non-root user +--------------------------------------- + +One can follow the following steps to allow a non-root user to virtual mount +a GlusterFS volume over libgfapi. This requires a configuration change which +enables GlusterFS server to accept client connections from non-priveledged +ports. + +.. code-block:: console + + # gluster volume set server.allow-insecure on + # gluster volume stop + # gluster volume start + +Edit `/etc/glusterfs/glusterd.vol` or `/usr/local/etc/glusterfs/glusterd.vol` +and set: + +.. code-block:: aconf + + option rpc-auth-allow-insecure on + +Restart glusterd service: + +.. code-block:: console + + # service glusterd restart + +Further, use `chown` and/or `chmod` commands to change permissions on mount +point or required directories to allow non-root access to appropriate users. -- cgit