Browse Source

allow other users to access encrypted folder
(prepare for sharing mount point with other containers)

Fabian Peter Hammerle 5 years ago
parent
commit
85d57e5fc0
2 changed files with 2 additions and 2 deletions
  1. 1 0
      Dockerfile
  2. 1 2
      mount.sh

+ 1 - 0
Dockerfile

@@ -22,6 +22,7 @@ RUN adduser -S encrypt \
         $ENCFS_SOURCE_DIR `#.encfs6xml` \
         $ENCFS_MOUNT_POINT \
         $(dirname $ENCFS_CONFIG_PATH) \
+    && echo user_allow_other >> /etc/fuse.conf \
     && chmod a+rx /mount.sh
 USER encrypt
 CMD ["/mount.sh"]

+ 1 - 2
mount.sh

@@ -43,5 +43,4 @@ if [ ! -f "$ENCFS_CONFIG_PATH" ]; then
 fi
 
 export ENCFS6_CONFIG="$ENCFS_CONFIG_PATH"
-# TODO grant access to other users / containers (--public / -o allow_other)
-mount_encfs -f
+mount_encfs -f -o allow_other