You are not logged in.

#1 2013-02-17 13:30:29

ThunderRush
Member
From: Austria
Registered: 2013-01-31
Posts: 22

[SOLVED] encfs and fuse - problem with rights

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

#2 2013-02-17 17:06:35

greenaim
Member
From: Portugal
Registered: 2011-11-08
Posts: 12

Re: [SOLVED] encfs and fuse - problem with rights

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

#3 2013-02-17 18:05:57

ThunderRush
Member
From: Austria
Registered: 2013-01-31
Posts: 22

Re: [SOLVED] encfs and fuse - problem with rights

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

#4 2013-02-17 18:14:41

greenaim
Member
From: Portugal
Registered: 2011-11-08
Posts: 12

Re: [SOLVED] encfs and fuse - problem with rights

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

#5 2013-02-18 04:59:28

hunterthomson
Member
Registered: 2008-06-22
Posts: 794
Website

Re: [SOLVED] encfs and fuse - problem with rights

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

#6 2013-02-18 07:53:53

ThunderRush
Member
From: Austria
Registered: 2013-01-31
Posts: 22

Re: [SOLVED] encfs and fuse - problem with rights

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

#7 2013-02-18 08:00:00

SanskritFritz
Member
From: Budapest, Hungary
Registered: 2009-01-08
Posts: 1,923
Website

Re: [SOLVED] encfs and fuse - problem with rights

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.


zʇıɹɟʇıɹʞsuɐs AUR || Cycling in Budapest with a helmet camera || Revised log levels proposal: "FYI" "WTF" and "OMG" (John Barnette)

Offline

#8 2013-02-18 08:08:27

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: [SOLVED] encfs and fuse - problem with rights

ThunderRush wrote:

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

#9 2013-02-18 09:55:40

ThunderRush
Member
From: Austria
Registered: 2013-01-31
Posts: 22

Re: [SOLVED] encfs and fuse - problem with rights

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

#10 2013-02-18 13:05:34

SanskritFritz
Member
From: Budapest, Hungary
Registered: 2009-01-08
Posts: 1,923
Website

Re: [SOLVED] encfs and fuse - problem with rights

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

#11 2013-02-21 06:53:34

greenaim
Member
From: Portugal
Registered: 2011-11-08
Posts: 12

Re: [SOLVED] encfs and fuse - problem with rights

SanskritFritz wrote:
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

#12 2013-02-21 10:15:27

SanskritFritz
Member
From: Budapest, Hungary
Registered: 2009-01-08
Posts: 1,923
Website

Re: [SOLVED] encfs and fuse - problem with rights

greenaim wrote:

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

Board footer

Powered by FluxBB