1
0
mirror of https://github.com/ipfs/kubo.git synced 2025-06-28 17:03:58 +08:00

added sudo to usermod;

added --json to "ipfs config" command;
added modification to fuse.conf;

License: MIT
Signed-off-by: Giuseppe Bertone <bertone.giuseppe@gmail.com>
This commit is contained in:
Giuseppe Bertone
2016-03-03 20:25:36 +01:00
parent 47643feb13
commit f6e1bb187c

View File

@ -51,7 +51,7 @@ sudo chown <username>:<groupname> /dev/fuse
Note: `<groupname>` will usually be `fuse`. Typically, you add the authorized users to the `fuse` group: Note: `<groupname>` will usually be `fuse`. Typically, you add the authorized users to the `fuse` group:
```sh ```sh
usermod -a -G fuse <username> sudo usermod -a -G fuse <username>
``` ```
## Mounting IPFS ## Mounting IPFS
@ -62,10 +62,23 @@ Once FUSE and the mountpoints have been created, issue the following command:
ipfs daemon --mount 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 ```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 ipfs daemon --mount
``` ```