aboutsummaryrefslogtreecommitdiff
path: root/Documentation/MANPAGE.md
diff options
context:
space:
mode:
authorJakob Unterwurzacher2020-11-14 15:27:40 +0100
committerJakob Unterwurzacher2020-11-14 15:27:40 +0100
commit14dac373c27aca96e341ac74ca750cbf7a6ae5eb (patch)
tree3fe343b9bc14ca1f2b57f3083498be704869b112 /Documentation/MANPAGE.md
parent8470cc38df53f2d171e8c2f34c570d10b0955e61 (diff)
MANPAGE: add fstab example
https://github.com/rfjakob/gocryptfs/issues/497
Diffstat (limited to 'Documentation/MANPAGE.md')
-rw-r--r--Documentation/MANPAGE.md8
1 files changed, 8 insertions, 0 deletions
diff --git a/Documentation/MANPAGE.md b/Documentation/MANPAGE.md
index 310f27a..7ac0a1b 100644
--- a/Documentation/MANPAGE.md
+++ b/Documentation/MANPAGE.md
@@ -579,6 +579,14 @@ Mount an encrypted view of joe's home directory using reverse mode:
gocryptfs -init -reverse /home/joe
gocryptfs -reverse /home/joe /home/joe.crypt
+Adding this line to `/etc/fstab` will mount `/tmp/cipher` to `/tmp/plain` on boot, using the
+password in `/tmp/passfile`. Use `sudo mount -av` to test the line without having
+to reboot. Adjust the gocryptfs path acc. to the output of the command `which gocryptfs`.
+Do use the `nofail` option to prevent an unbootable system if the gocryptfs mount fails (see
+the `-nofail` option for details).
+
+ /tmp/cipher /tmp/plain fuse./usr/local/bin/gocryptfs nofail,allow_other,passfile=/tmp/password 0 0
+
EXIT CODES
==========