From f6e1bb187c1290bf7cd4e79416c67c158f6733d3 Mon Sep 17 00:00:00 2001 From: Giuseppe Bertone Date: Thu, 3 Mar 2016 20:25:36 +0100 Subject: [PATCH] added sudo to usermod; added --json to "ipfs config" command; added modification to fuse.conf; License: MIT Signed-off-by: Giuseppe Bertone --- docs/fuse.md | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/docs/fuse.md b/docs/fuse.md index 921905b81..ca321faae 100644 --- a/docs/fuse.md +++ b/docs/fuse.md @@ -51,7 +51,7 @@ sudo chown : /dev/fuse Note: `` will usually be `fuse`. Typically, you add the authorized users to the `fuse` group: ```sh -usermod -a -G fuse +sudo usermod -a -G fuse ``` ## Mounting IPFS @@ -62,10 +62,23 @@ Once FUSE and the mountpoints have been created, issue the following command: ipfs daemon --mount ``` -If you wish to allow other users to use the mount points, use the following: +If you wish to allow other users to use the mount points, edit /etc/fuse.conf to enable non-root users, i.e.: ```sh -ipfs config Mounts.FuseAllowOther true +# /etc/fuse.conf - Configuration file for Filesystem in Userspace (FUSE) + +# Set the maximum number of FUSE mounts allowed to non-root users. +# The default is 1000. +#mount_max = 1000 + +# Allow non-root users to specify the allow_other or allow_root mount options. +user_allow_other +``` + +and use the following: + +```sh +ipfs config --json Mounts.FuseAllowOther true ipfs daemon --mount ```