You are not logged in.
I got a little issue with encfs at the moment. When I mount the encrypted folder and the plain folder, fuse always says I do not have the rights to chdir. Earlier it said that I have no write rights on it, but I fixed that by a chmod.
Question is - how can I mount an encrypted folder and use if even as a normal user? Also, I checked, there is no fuse user group. I tried to added one manually and put my user into it, but that did not help, sadly.
Thanks in advance, I guess this is a really stupid question, but I have not found anything.
Last edited by ThunderRush (2013-02-18 09:55:58)
Offline
Hi,
I use encfs at boot with no problem. The encfs command is trigger before X starts.
What is the owner of the encrypted folder?
Offline
I am the Owner of the enc folder. I don't really think it has to do with X, and I don't want to start it on boot.
Offline
It was an example that I'm using encfs as normal user...
I don't know how to help more... Just another thing...
The folder where I mount using encfs, is mine, and the root user can't read it...
Offline
Strange. You should have no problem. I use encfs. I guess I can just tell you how I have it setup and maybe that will allow you to see what is wrong with your setup.
I have a directory ~/.Documents and the unencrypted pass-through directory is ~/Documents. All I did to create this was run these commands...
mv /home/user/Documents /home/user/Documents-bkp
mkdir /home/user/Documents
mkdir /home/user/.Documents
encfs /home/user/.Documents /home/user/Documents
#
# Then I moved everything from the backup to the pass-through folder
cp -r /home/user/Documents-bkp/* /home/user/Documents
#
# To Unmount I run this
fusermount -u /home/user/Documents
.... Then I have SpiderOak backup the encrypted directory.... I don't have it backup the .encfs.xml header though. Instead I GPG encrypt the .encfs.xml header file and I backup that instead. I also don't encrypt the file names simply so the versioning feature of SpiderOak is usable.
Last edited by hunterthomson (2013-02-18 05:05:22)
OpenBSD-current Thinkpad X230, i7-3520M, 16GB CL9 Kingston, Samsung 830 256GB
Contributor: linux-grsec
Offline
My list of commands is as followed...
~ # mkdir enc
~ # mkdir plain
~ # encfs ~/enc ~/plain
Password ladalada
~ # encfs ~/enc ~/plain
fusermount: failed to access mountpoint /home/thunderuser/plain: Permission denied
I really do have no idea anymore.
Oh damnit. Forget it. Thank you, it works fine now. Shouldn't have double mounted.
Last edited by ThunderRush (2013-02-18 09:53:46)
Offline
and the root user can't read it...
That is normal, unless you use the --public switch (but in that case you have to mount as root)
Try to debug with -f --verbose and see any errors in the terminal.
Share the command you use with us.
zʇıɹɟʇıɹʞsuɐs AUR || Cycling in Budapest with a helmet camera || Revised log levels proposal: "FYI" "WTF" and "OMG" (John Barnette)
Offline
My list of commands is as followed...
~ # mkdir enc ~ # mkdir plain ~ # encfs ~/enc ~/plain Password ladalada ~ # encfs ~/enc ~/plain fusermount: failed to access mountpoint /home/thunderuser/plain: Permission denied
I really do have no idea anymore.
Oh damnit. Forget it. Thank you, it works fine now. Shouldn't have double mounted.
These threads are meant not only to get help, but potentially help others in the future as a reference. So please indicate exactly what the problem turned out to be and how you solved it. Then mark your thread as solved by editing the first post (which will give you the ability to edit the thread title).
Offline
Yeah, of course, sorry. Was just about to do that. So, the first problem is=
When you create two directories in a location where you need sudo to do so, that can be very troublesome.
If you get the message that you have no rights, check if you do not already mounted it, with
# df
Offline
You can check with a script, if already mounted:
DOCENCFS_MOUNTED=`mount | grep '.Documents' | wc -l`
[ $DOCENCFS_MOUNTED -eq 0 ] && echo mypassword | encfs --stdinpass /home/user/.Documents /home/user/Documents
zʇıɹɟʇıɹʞsuɐs AUR || Cycling in Budapest with a helmet camera || Revised log levels proposal: "FYI" "WTF" and "OMG" (John Barnette)
Offline
greenaim wrote:and the root user can't read it...
That is normal, unless you use the --public switch (but in that case you have to mount as root)
Try to debug with -f --verbose and see any errors in the terminal.
Share the command you use with us.
You right I can only use --public as root.
Do you know if it's possible to use encfs, where only the files content is encrypted but not their name?
Thanks
Offline
Do you know if it's possible to use encfs, where only the files content is encrypted but not their name?
AFAIK you can't.
zʇıɹɟʇıɹʞsuɐs AUR || Cycling in Budapest with a helmet camera || Revised log levels proposal: "FYI" "WTF" and "OMG" (John Barnette)
Offline