summaryrefslogtreecommitdiffstats
path: root/remote/modules
diff options
context:
space:
mode:
authorJonathan Bauer2015-12-04 15:14:55 +0100
committerJonathan Bauer2015-12-04 15:14:55 +0100
commit4361f4fa05289ce765e18ab1a00c625061f7806c (patch)
treeba079332cd56d21944346f77ba6468c1836088c6 /remote/modules
parent[hardware-stats] New module (diff)
downloadtm-scripts-4361f4fa05289ce765e18ab1a00c625061f7806c.tar.gz
tm-scripts-4361f4fa05289ce765e18ab1a00c625061f7806c.tar.xz
tm-scripts-4361f4fa05289ce765e18ab1a00c625061f7806c.zip
[dnbd3] added fuse.conf as static file & pam_script hook to add PAM_USER to the fuse group
fancier than just chmod o+r /etc/fuse.conf imo...
Diffstat (limited to 'remote/modules')
-rw-r--r--remote/modules/dnbd3/data/etc/fuse.conf8
-rw-r--r--remote/modules/dnbd3/data/opt/openslx/scripts/pam_script_auth.d/10-fuse3
2 files changed, 11 insertions, 0 deletions
diff --git a/remote/modules/dnbd3/data/etc/fuse.conf b/remote/modules/dnbd3/data/etc/fuse.conf
new file mode 100644
index 00000000..926d936f
--- /dev/null
+++ b/remote/modules/dnbd3/data/etc/fuse.conf
@@ -0,0 +1,8 @@
+# /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
diff --git a/remote/modules/dnbd3/data/opt/openslx/scripts/pam_script_auth.d/10-fuse b/remote/modules/dnbd3/data/opt/openslx/scripts/pam_script_auth.d/10-fuse
new file mode 100644
index 00000000..c11c7448
--- /dev/null
+++ b/remote/modules/dnbd3/data/opt/openslx/scripts/pam_script_auth.d/10-fuse
@@ -0,0 +1,3 @@
+usermod -a -G fuse ${PAM_USER}
+ret=$?
+[ $ret -ne 0 ] && slxlog "pam_auth_fuse" "Could not add $PAM_USER to group 'fuse'"