summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrfjakob2021-08-24 19:57:32 +0200
committerrfjakob2021-08-24 19:57:32 +0200
commit7159d62c260736fe39f6b54e159621b32ebc6ef8 (patch)
tree5dbce77f91e266039eb5b72cdbda6d1d319dd561
parent49e5041d7d2a1bbd7c972887d15a4153a758d117 (diff)
Updated Mounting on login using pam_mount (markdown)
-rw-r--r--Mounting-on-login-using-pam_mount.md8
1 files changed, 4 insertions, 4 deletions
diff --git a/Mounting-on-login-using-pam_mount.md b/Mounting-on-login-using-pam_mount.md
index 783a055..e11e802 100644
--- a/Mounting-on-login-using-pam_mount.md
+++ b/Mounting-on-login-using-pam_mount.md
@@ -16,8 +16,8 @@ Copy the `gocryptfs` binary into `/usr/local/bin` .
Create a gocryptfs filesystem:
```
-$ mkdir /home/testuser/cipher /home/testuser/plain
-$ gocryptfs -init /home/testuser/cipher
+$ mkdir $HOME/cipher $HOME/plain
+$ gocryptfs -init $HOME/cipher
```
pam_mount config
@@ -27,11 +27,11 @@ Put the following into `/etc/security/pam_mount.conf.xml`, just before
the closing `</pam_mount>` tag at the bottom:
```
-<volume user="testuser" fstype="fuse" options="nodev,nosuid,quiet"
+<volume user="YOURUSERNAME" fstype="fuse" options="nodev,nosuid,quiet"
path="/usr/local/bin/gocryptfs#/home/%(USER)/cipher" mountpoint="/home/%(USER)/plain" />
```
-Replace `testuser` with your user name.
+Replace `YOURUSERNAME` with your user name.
PAM config
----------