Official Xtreamer Forums: EncFS package discussion - Official Xtreamer Forums

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • This topic is locked

EncFS package discussion Mounting folder as encrypted file system

#1 User is offline   TheHijacker 

  • App Installer Guru
  • View blog
  • Group: Developers
  • Posts: 3525
  • Joined: 26-August 09
  • Country:Slovenia

Posted 27 September 2010 - 05:58

EncFS provides an encrypted filesystem in user-space. It runs without any special permissions and uses the FUSE library and Linux kernel module to provide the filesystem interface. EncFS is open source software, licensed under the GPL.

As with most encrypted filesystems, Encfs is meant to provide security against off-line attacks; ie your notebook or backups fall into the wrong hands, etc. The way Encfs works is different from the “loopback” encrypted filesystem support built into the Linux kernel because it works on files at a time, not an entire block device. This is a big advantage in some ways, but does not come without a cost.

http://www.arg0.net/encfs

With this application you can have a private folder that is accessable only when you mount it with password. All the files are encrypted and not usable unless you mount it with proper password.

By default the password is "sysadmin". Since the input of password is needed you need to mount it manualy from SSH session using command:

/home/epkg/bin/encfs.sh


To change the default password type this:

/home/epkg/bin/encfsctl passwd /home/sysadmin/.encfs


To mount it manualy without using my script and maybe with extra switches type:

sudo -u sysadmin /home/epkg/bin/encfs /home/sysadmin/.encfs /home/Public/encfs -- -o allow_other


And to unmount:

/home/epkg/bin/fusermount -u /home/Public/encfs/


After mount you can copy the files to folder:

/home/Public/encfs/


When you unmount it the folder will be empty. DO NOT COPY FILES TO IT.

Actual encrypted files are located in /home/sysadmin/.encfs folder.

Give it a try and post your comments here.
My projects:

APP Installer - easily install additional application and extend the basic usage of your Xtreamer product.
tvheadend guide - guide on how to use the tvheadend TV backend on OpenELEC OS for Ultra

Follow me on my blog.
Subscribe to APP Installer packages RSS feed: eTRAYz, Prodigy/SW3.


If you like my project and want to contribute, you can show your appreciation with a small donation.
0

#2 User is offline   pvanessen 

  • Newbie
  • Group: Members
  • Posts: 23
  • Joined: 20-October 09

Posted 27 December 2010 - 21:48

not working.

I installed the package but libfuse seems missing. How did u get around this, as libfuse-2.8.4 does not compile on the etray from itself.

./encfs: error while loading shared libraries: libfuse.so.2: cannot open shared object file: No such file or directory


Cheers,
Phil
0

#3 User is offline   TheHijacker 

  • App Installer Guru
  • View blog
  • Group: Developers
  • Posts: 3525
  • Joined: 26-August 09
  • Country:Slovenia

Posted 28 December 2010 - 06:02

Fuse compiled fine for me. Install it in APP Installer and try again please.

It should also be available on eTRAYz by default.
My projects:

APP Installer - easily install additional application and extend the basic usage of your Xtreamer product.
tvheadend guide - guide on how to use the tvheadend TV backend on OpenELEC OS for Ultra

Follow me on my blog.
Subscribe to APP Installer packages RSS feed: eTRAYz, Prodigy/SW3.


If you like my project and want to contribute, you can show your appreciation with a small donation.
0

#4 User is offline   pvanessen 

  • Newbie
  • Group: Members
  • Posts: 23
  • Joined: 20-October 09

Posted 28 December 2010 - 10:48

Installed it over the App Installer .... not working. It shows up in the list, but there is not "Delete" or "Uninstall" symbol shown.

:(
0

#5 User is offline   TheHijacker 

  • App Installer Guru
  • View blog
  • Group: Developers
  • Posts: 3525
  • Joined: 26-August 09
  • Country:Slovenia

Posted 28 December 2010 - 12:24

Well. Once installed I don't allow it to be uninstalled. It is just lib files.

Try this:

ldconfig
ldd /home/epkg/bin/encfs

My projects:

APP Installer - easily install additional application and extend the basic usage of your Xtreamer product.
tvheadend guide - guide on how to use the tvheadend TV backend on OpenELEC OS for Ultra

Follow me on my blog.
Subscribe to APP Installer packages RSS feed: eTRAYz, Prodigy/SW3.


If you like my project and want to contribute, you can show your appreciation with a small donation.
0

#6 User is offline   pvanessen 

  • Newbie
  • Group: Members
  • Posts: 23
  • Joined: 20-October 09

Posted 28 December 2010 - 16:10

Spoiler



~# sudo ldd /home/epkg/bin/encfs
        libencfs.so.6 => /home/epkg/lib/libencfs.so.6 (0x4002d000)
        librlog.so.5 => /home/epkg/lib/librlog.so.5 (0x400aa000)
        libssl.so.0.9.8 => /usr/lib/libssl.so.0.9.8 (0x400c0000)
        libcrypto.so.0.9.8 => /usr/lib/libcrypto.so.0.9.8 (0x40107000)
        libz.so.1 => /lib/libz.so.1 (0x4023c000)
        libfuse.so.2 => not found
        librt.so.1 => /lib/librt.so.1 (0x40255000)
        libdl.so.2 => /lib/libdl.so.2 (0x40264000)
        libboost_serialization.so.1.44.0 => /home/epkg/lib/libboost_serialization.so.1.44.0 (0x4026f000)
        libboost_filesystem.so.1.44.0 => /home/epkg/lib/libboost_filesystem.so.1.44.0 (0x402e7000)
        libboost_system.so.1.44.0 => /home/epkg/lib/libboost_system.so.1.44.0 (0x40316000)
        libiconv.so.2 => /home/epkg/lib/libiconv.so.2 (0x40322000)
        libstdc++.so.6 => /lib/libstdc++.so.6 (0x4040a000)
        libm.so.6 => /lib/libm.so.6 (0x404e9000)
        libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x40594000)
        libpthread.so.0 => /lib/libpthread.so.0 (0x405a8000)
        libc.so.6 => /lib/libc.so.6 (0x405c6000)
        /lib/ld-linux.so.3 (0x40000000)




:((

This post has been edited by TheHijacker: 28 December 2010 - 17:00

0

#7 User is offline   pvanessen 

  • Newbie
  • Group: Members
  • Posts: 23
  • Joined: 20-October 09

Posted 28 December 2010 - 16:51

made some progress...i copied the libfuse.so.2.8.4 into /usr/lib

~# cd /usr/lib
/usr/lib# ls -la |grep fuse
lrwxrwxrwx  1 root root      16 Dec 28 17:04 libfuse.so -> libfuse.so.2.8.4
lrwxrwxrwx  1 root root      16 Dec 28 17:04 libfuse.so.2 -> libfuse.so.2.8.4
-rwxr-xr-x  1 root root  438781 Dec 28 17:04 libfuse.so.2.8.4


~# sudo ldd /home/epkg/bin/encfs
        libencfs.so.6 => /home/epkg/lib/libencfs.so.6 (0x4002d000)
        librlog.so.5 => /home/epkg/lib/librlog.so.5 (0x400aa000)
        libssl.so.0.9.8 => /usr/lib/libssl.so.0.9.8 (0x400c0000)
        libcrypto.so.0.9.8 => /usr/lib/libcrypto.so.0.9.8 (0x40107000)
        libz.so.1 => /lib/libz.so.1 (0x4023c000)
        libfuse.so.2 => /usr/lib/libfuse.so.2 (0x40255000)
        librt.so.1 => /lib/librt.so.1 (0x40281000)
        libdl.so.2 => /lib/libdl.so.2 (0x40290000)
        libboost_serialization.so.1.44.0 => /home/epkg/lib/libboost_serialization.so.1.44.0 (0x4029b000)
        libboost_filesystem.so.1.44.0 => /home/epkg/lib/libboost_filesystem.so.1.44.0 (0x40313000)
        libboost_system.so.1.44.0 => /home/epkg/lib/libboost_system.so.1.44.0 (0x40342000)
        libiconv.so.2 => /home/epkg/lib/libiconv.so.2 (0x4034e000)
        libstdc++.so.6 => /lib/libstdc++.so.6 (0x40436000)
        libm.so.6 => /lib/libm.so.6 (0x40515000)
        libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x405c0000)
        libpthread.so.0 => /lib/libpthread.so.0 (0x405d4000)
        libc.so.6 => /lib/libc.so.6 (0x405f2000)
        /lib/ld-linux.so.3 (0x40000000)


But when I now run the encfs.sh, this error occurs:

~# sudo /home/epkg/bin/encfs.sh
Mounting encfs:
EncFS Password:
fuse: failed to open /dev/fuse: Permission denied
fuse failed.  Common problems:
 - fuse kernel module not installed (modprobe fuse)
 - invalid options -- see usage message


I tried some more...

~# modprobe fuse
FATAL: Module fuse not found.
~# insmod fuse
insmod: can't read 'fuse': No such file or directory
~# lsmod
Module                  Size  Used by
tun                     8864  1
ehci_hcd               31724  0
vfat                   10240  0
ntfs                  104036  0
pcbc                    4096  0
michael_mic             2336  0
aes_generic            34216  0
ecb                     2752  0
rng_core                4228  0
arc4                    1664  0
gmac                   26928  0
mii                     6144  1 gmac
usbcore               121940  2 ehci_hcd

This post has been edited by pvanessen: 28 December 2010 - 16:55

0

#8 User is offline   TheHijacker 

  • App Installer Guru
  • View blog
  • Group: Developers
  • Posts: 3525
  • Joined: 26-August 09
  • Country:Slovenia

Posted 28 December 2010 - 16:56

What is your firmware version?
My projects:

APP Installer - easily install additional application and extend the basic usage of your Xtreamer product.
tvheadend guide - guide on how to use the tvheadend TV backend on OpenELEC OS for Ultra

Follow me on my blog.
Subscribe to APP Installer packages RSS feed: eTRAYz, Prodigy/SW3.


If you like my project and want to contribute, you can show your appreciation with a small donation.
0

#9 User is offline   pvanessen 

  • Newbie
  • Group: Members
  • Posts: 23
  • Joined: 20-October 09

Posted 28 December 2010 - 17:05

Ver.1.0.7-official 


~# uname -a
Linux etrayz 2.6.24.4 #1 Fri Sep 17 10:29:48 KST 2010 armv5tejl ARM926EJ-S rev 5 (v5l) Oxsemi NAS GNU/Linux

0

#10 User is offline   TheHijacker 

  • App Installer Guru
  • View blog
  • Group: Developers
  • Posts: 3525
  • Joined: 26-August 09
  • Country:Slovenia

Posted 28 December 2010 - 17:27

OK then. Someone else will have to retest this. I would need a clean ET to reproduce.

You can also try this:

mknod /dev/fuse c 0 0
chown root:root /dev/fuse
chmod 0666 /dev/fuse

My projects:

APP Installer - easily install additional application and extend the basic usage of your Xtreamer product.
tvheadend guide - guide on how to use the tvheadend TV backend on OpenELEC OS for Ultra

Follow me on my blog.
Subscribe to APP Installer packages RSS feed: eTRAYz, Prodigy/SW3.


If you like my project and want to contribute, you can show your appreciation with a small donation.
0

#11 User is offline   pvanessen 

  • Newbie
  • Group: Members
  • Posts: 23
  • Joined: 20-October 09

Posted 28 December 2010 - 23:04

what do you mean by clean?
0

#12 User is offline   TheHijacker 

  • App Installer Guru
  • View blog
  • Group: Developers
  • Posts: 3525
  • Joined: 26-August 09
  • Country:Slovenia

Posted 29 December 2010 - 09:14

Fresh full format firmware install.
My projects:

APP Installer - easily install additional application and extend the basic usage of your Xtreamer product.
tvheadend guide - guide on how to use the tvheadend TV backend on OpenELEC OS for Ultra

Follow me on my blog.
Subscribe to APP Installer packages RSS feed: eTRAYz, Prodigy/SW3.


If you like my project and want to contribute, you can show your appreciation with a small donation.
0

#13 User is offline   pvanessen 

  • Newbie
  • Group: Members
  • Posts: 23
  • Joined: 20-October 09

Posted 29 December 2010 - 11:52

Can I do that without wiping my content ?
0

#14 User is offline   TheHijacker 

  • App Installer Guru
  • View blog
  • Group: Developers
  • Posts: 3525
  • Joined: 26-August 09
  • Country:Slovenia

Posted 29 December 2010 - 20:02

You could yes. Full install but without formatting Data partition. Still some apps would need to be reinstalled.
My projects:

APP Installer - easily install additional application and extend the basic usage of your Xtreamer product.
tvheadend guide - guide on how to use the tvheadend TV backend on OpenELEC OS for Ultra

Follow me on my blog.
Subscribe to APP Installer packages RSS feed: eTRAYz, Prodigy/SW3.


If you like my project and want to contribute, you can show your appreciation with a small donation.
0

#15 User is offline   pvanessen 

  • Newbie
  • Group: Members
  • Posts: 23
  • Joined: 20-October 09

Posted 30 December 2010 - 17:37

One full install (without wiping the /home partition) later.....

I can not install encfs and fuse libs as the Installer says, they are already there.
WOuld make sense, because they reside in /home/epkg and for that were not removed.

The error is back to the missing lib as described in my first post.

It could not get any cleaner from my point of view.

So what is your recommendation at this point?! ;)

Thanks for your support!
Phil
0

#16 User is offline   TheHijacker 

  • App Installer Guru
  • View blog
  • Group: Developers
  • Posts: 3525
  • Joined: 26-August 09
  • Country:Slovenia

Posted 30 December 2010 - 19:53

As I said before. I need to reproduce this on my eTRAYz to try and figure out solution. For that I need a clean ET since mine is currently full of junk that I added additionaly.

I'll do a full wipe sooner or later. When I tested EncFS it worked fine for me and some other users. So I know that at some point it works fine.
My projects:

APP Installer - easily install additional application and extend the basic usage of your Xtreamer product.
tvheadend guide - guide on how to use the tvheadend TV backend on OpenELEC OS for Ultra

Follow me on my blog.
Subscribe to APP Installer packages RSS feed: eTRAYz, Prodigy/SW3.


If you like my project and want to contribute, you can show your appreciation with a small donation.
0

#17 User is offline   Orangeman 

  • Newbie
  • Group: Members
  • Posts: 7
  • Joined: 08-January 10
  • City:Brno
  • Country:Czech Republic

Posted 10 March 2011 - 13:32

Hello, I have question to this app.
I have 2x 2TB discs in linear mode. I have about 2,5 TB now in Public folder. If I encrypt whole my public file with this existing data, can my TV access movies and other encrypted stuff via minidlna? ond from my PC's I will be able also access whole Public folder?

I want to encrypt if possible whole etrayz (protection data if someone steel whole etrayz), but I want to be able work "normally"

If this app is not what I need, could you maybe advise some different solution?

Thanks in advance
0

#18 User is offline   Nak 

  • Newbie
  • Group: Members
  • Posts: 35
  • Joined: 27-December 09
  • City:Madrid
  • Country:Spain

Posted 28 September 2012 - 08:22

Hi TheHijacker,
there's noactivity in this topic since many time ago, I don't know if people is not interested in EncFS package or if it working fine for most users
I'm interesed in the encryption of some content (I asked you many tiem ago for porting TrueCrypt) and I discovered this package whcih is not working for me
I've got the same errors reported in other posts
/home/epkg/bin/encfs: error while loading shared libraries: libfuse.so.2: cannot open shared object file: No such file or directory

and I've followed all the steps detailed in this topic with no sucess (excepting the clean installation)

Could you help me one more time?

Thanks in advance

Cheers
0

#19 User is offline   Nak 

  • Newbie
  • Group: Members
  • Posts: 35
  • Joined: 27-December 09
  • City:Madrid
  • Country:Spain

Posted 01 October 2012 - 13:47

View PostNak, on 28 September 2012 - 08:22, said:

Hi TheHijacker,
there's noactivity in this topic since many time ago, I don't know if people is not interested in EncFS package or if it working fine for most users
I'm interesed in the encryption of some content (I asked you many tiem ago for porting TrueCrypt) and I discovered this package whcih is not working for me
I've got the same errors reported in other posts
/home/epkg/bin/encfs: error while loading shared libraries: libfuse.so.2: cannot open shared object file: No such file or directory

and I've followed all the steps detailed in this topic with no sucess (excepting the clean installation)

Could you help me one more time?

Thanks in advance

Cheers

Solved! :)
There was some issue in the fuse library, in the App Installer I've got no options and it seemed to be installed
I installed it manually downloading the fuse file from http://epkg.xtreamer...use.2.8.4-1.zip and uncompressing the file
I'm going to test it

Thanks anyway
0

#20 User is offline   Nak 

  • Newbie
  • Group: Members
  • Posts: 35
  • Joined: 27-December 09
  • City:Madrid
  • Country:Spain

Posted 01 October 2012 - 15:35

stuck again, I'm having the same errors as pvanessen,
everything seemed to be ok and that the encrypted file system could be mounted
$ /home/epkg/bin/encfs.sh
Mounting encfs:
EncFS Password:
...DONE

but when I try to copy files I get an I/O error
:/home/Public/Images/default/etrayz]$ cp XT_Lady_01.jpg /home/Public/encfs
cp: cannot create regular file `/home/Public/encfs/XT_Lady_01.jpg': Input/output error

Maybe I need to add the fuse module?
[105:/]$ ldconfig
[106:/]$ modprobe fuse
FATAL: Module fuse not found.

I don't know how, anybody can help me?

Thanks
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • This topic is locked

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users