diff options
author | rfjakob | 2021-08-24 19:57:32 +0200 |
---|---|---|
committer | rfjakob | 2021-08-24 19:57:32 +0200 |
commit | 7159d62c260736fe39f6b54e159621b32ebc6ef8 (patch) | |
tree | 5dbce77f91e266039eb5b72cdbda6d1d319dd561 /Mounting-on-login-using-pam_mount.md | |
parent | 49e5041d7d2a1bbd7c972887d15a4153a758d117 (diff) |
Updated Mounting on login using pam_mount (markdown)
Diffstat (limited to 'Mounting-on-login-using-pam_mount.md')
-rw-r--r-- | Mounting-on-login-using-pam_mount.md | 8 |
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 ---------- |