Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

QA: How to auto-mount the encrypted dir on boot in alpine linux by /etc/fstab? #497

Closed
Zerorigin opened this issue Aug 19, 2020 · 1 comment

Comments

@Zerorigin
Copy link

I have tries:
#45
https://github.com/rfjakob/gocryptfs/wiki/Mounting-on-login-using-pam_mount
https://github.com/rfjakob/gocryptfs/wiki/Mounting-on-login-with-Gnome-keyring

None of these are work for me.
Maybe I missed some steps which is important, but I don't know where I missed it.
Anyone can give me a little help?

@Zerorigin Zerorigin changed the title How to auto-mount the encrypted dir on boot in alpine linux by /etc/fstab ? QA: How to auto-mount the encrypted dir on boot in alpine linux by /etc/fstab? Aug 19, 2020
@rfjakob
Copy link
Owner

rfjakob commented Nov 14, 2020

I just tried this fstab line on my Fedora:

/tmp/cipher /tmp/plain fuse./usr/local/bin/gocryptfs nofail,allow_other,passfile=/tmp/password 0 0

Works ok:

$ sudo mount -av
/                        : ignored
/boot                    : already mounted
passfile: reading from file "/tmp/password"
Decrypting master key
The option "-allow_other" is set. Make sure the file permissions protect your data from unwanted access.
Filesystem mounted and ready.
/tmp/plain               : successfully mounted

Note: find out the full gocryptfs path like this:

$ which gocryptfs
/usr/local/bin/gocryptfs

rfjakob added a commit that referenced this issue Nov 14, 2020
@rfjakob rfjakob closed this as completed Dec 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants