Hagen Fürstenau | 28 May 2011 13:40

Unable to mount with "-o xattr"

Hi,

I'd like to mount an ecryptfs file system with the "-o xattr" option
(assuming that it would improve performance of stat calls).

I've mounted the underlying ext4 file system with "user_xattr" and made
sure that setting xattrs with "setfattr" works as it should. But after
mounting with "mount -t ecryptfs -o xattr", the feature doesn't seem to
work: files are still at least 12K big, "mount" doesn't show "xattr"
among the options of the ecryptfs mount, and "getfattr" on the
underlying files doesn't show anything.

Any ideas where to look for the problem? There isn't anything about
ecryptfs in syslog, except for

mount.ecryptfs: Error initializing key module
[/usr/lib/ecryptfs/libecryptfs_key_mod_gpg.so]; rc = [-22]"

which seems to be unrelated.

# uname -a
Linux neko 2.6.32-5-amd64 #1 SMP Wed May 18 23:13:22 UTC 2011 x86_64
GNU/Linux

Cheers,
Hagen

Tyler Hicks | 25 May 2011 17:32
Picon

New eCryptfs mailing list

Both of the eCryptfs mailing lists (ecryptfs-devel and ecryptfs-users)
are moving. They will be consolidated into a single mailing list that is
hosted on vger.kernel.org. You can find information about the new list
here:

http://vger.kernel.org/vger-lists.html#ecryptfs

We will keep the old mailing lists running for about a week and then
they will be shut down.

The reason for the switch is due to launchpad's list policy of requiring
mail to be from launchpad members. The eCryptfs development community
continues to grow and keeping the list open to non-launchpad members is
needed to foster that growth.

Please take a moment to subscribe to the new mailing list.

Tyler

Dustin Kirkland | 10 May 2011 00:32
Picon
Gravatar

Re: A desperate post

If you accurately recorded your mount passphrase, you should be able
to follow the instructions at:
 * http://blog.dustinkirkland.com/2011/04/introducing-ecryptfs-recover-private.html
and recover your data.

Dustin

Xander Pirdy | 9 May 2011 23:25
Picon
Gravatar

A desperate post

Hello please let me know if this is posted in the wrong place and if
so where I should post to get useful information:

I was trying to mount my encrypted home directory from a livecd in
order to back up my data (according to the instructions at
https://bugs.launchpad.net/ubuntu/+source/ecryptfs-utils/+bug/455709)
, when I accidentally deleted what I thought was one of the .ecryptfs
folders in my encrypted home. Since I performed the "move to trash" in
nautilus I thought that it would be in the trash and I could just
restore it. No such luck. So now I am pretty much freaking out. I have
the password, it looks like all the files are still in .Private but
when I boot my system and logon all that is in my home folder are:
Access-Your-Private-Data.desktop README.txt .Private .cache .gnome2
and a new folder that starts with
ECRYPTFS_FNEK_ENCRYPTED.<longstringofrandomdigitsandletters>--.

In other words I have no idea how to get the data out of my home
folder now. Is it even possible? All the files are still there in
.Private but I can't even read their names as they too are encrypted.
I really don't care if I can never successfully log on again as long
as there is some, however tedious way to recover the individual files.

I do still seem to have the .ecryptfs folder in ../ one that has my
main folder in it, which in turn has another .ecryptfs directory that
contains auto-mount, auto-umount Private.sig Private.mnt and
wrapped-passphrase. Which is what I was using to follow the
instructions from that bugpost shown earlier.

I am sorry for the long post and desperation, but this is years of
work lost because of one stupid miss-click, and desperately hope to
(Continue reading)

Fredrik Thulin | 15 Mar 2011 08:57
Favicon
Gravatar

hardware token

Hi

[repost after properly registering e-mail address]

I'm sending this message to see if there is any interest of
collaboration regarding development of multi-factor protection of user
data.

I'm currently experimenting with using YubiKey USB tokens with
HMAC-SHA1 challenge-response to unlock my encrypted home directory
(disclaimer: I work for Yubico).

I'm glad to report that I've got a proof of concept working. We have a
PAM module for doing OTP validated logins that has recently been
extended to also support offline authentication using the
challenge-response mode available since YubiKey 2.2.

Today, I made that PAM module store an authentication token (currently
the result of a static challenge) upon successful validation which
meant that pam_ecryptfs would not get my login password from PAM
anymore, but rather get the result of the challenge-response.

After that, it was simply a matter of rewrapping my ecryptfs
passphrase to get it protected by something I have (my YubiKey) plus
something I know (my password, part of the challenge) and voila, two
factor authenticated eCryptfs!

This is a list of things I see that would benefit of discussion :

* Is it a sufficiently good design to base the passphrase passing on
(Continue reading)

John Magolske | 14 Feb 2011 03:32

Remote encrypted backups with ecryptfs, rsync, rdiff-backup & ssh?

Hi,

I'd like to create encrypted backups onto a remote server in such a
way that the remote server never sees anything unencrypted. The idea
would be to sync my home directory onto a local drive (using rsync or
rdiff-backup) into a directory that gets encrypted by ecryptfs, then
rsync that encrypted directory up to a remote server via ssh:

(A) Simple mirror:

  % sudo mount -t ecryptfs /drive/encrypt /drive/decrypt
  % rsync -av --delete /home/john /drive/decrypt
  % sudo umount -i /drive/decrypt
  % rsync -av --delete -e ssh /drive/encrypt user <at> xxx.xxx.xx.xxx:/backup

(B) Mirror with increments using rdiff-backup:

  % sudo mount -t ecryptfs /drive/encrypt /drive/decrypt
  % rdiff-backup /home/john /drive/decrypt
  % sudo umount -i /drive/decrypt
  % rsync -av --delete -e ssh /drive/encrypt user <at> xxx.xxx.xx.xxx:/backup

(C) Use sshfs to mount the remote encrypted backup & decrypt it locally:

  % sshfs user <at> xxx.xxx.xx.xxx:backup /remote-encrypt
  % sudo mount -t ecryptfs /remote-encrypt /remote-decrypt
  % cd /remote-decrypt

How well would any of these scenarios work with ecryptfs?
Would enabling filename encryption be a viable option?
(Continue reading)

Arkadiusz Miskiewicz | 6 Feb 2011 00:27
Picon
Gravatar

pam_keyinit question (trying to setup encryption for $HOME)


Hi,

I'm trying to setup configuration with $HOME of user being encrypted. Using 
2.6.37 kernel and ecryptfs-utils 85.

$HOME was migrated using ecryptfs-migrate-home.

First problem is "Error attempting to add filename encryption key to user 
session keyring; rc = [1]". 

From looking into code:
A) ecryptfs_insert_wrapped_passphrase_into_keyring() calls
B) ecryptfs_add_passphrase_key_to_keyring().

If B) returns non zero then it is treated as an error but "1" means key 
already exits. Doesn't this mean that 1 should also be treated as "ok" ?

I'm using pam_keyinit.so which adds/revokes keys at start/end of session and I 
guess this causes error "1".

If I drop pam_keyinit, setup everything ecryptfs related then everything works 
fine (even if I set pam_keyinit back in pam configs).

[root <at> bigarm ~]# cat /etc/pam.d/sshd
#%PAM-1.0
auth            required        pam_listfile.so item=user sense=deny 
file=/etc/security/blacklist.sshd onerr=succeed
auth            include         system-auth
account         required        pam_shells.so
(Continue reading)

kapetr | 4 Feb 2011 19:29
Picon

(un)security of eCryptfs ?

Hello,

I'm new in using of eCryptfs, but the first test do not let me
sleep.

I'm using Ubuntu 10.10 - standard installation.

Let see my steps:

1. I mount (as root or with sudo) my first eCryptfs in user1 subdirs
with passwd1.
2. the key is ONLY in keyring  <at> u of root, NOT by user1 - but:

user1 can create and read files in that FS (file system) root can
the same.

?? How can user1 work with files in this FS even if user1 has no key
in his keyring ?!!!

3. root clears kis keyring with keyctl clear  <at> u, but the FS is
usable further ??!!

4. root unmounts this FS and mounts it again with another password
passwd2

5. user1 can not see content of previous files (but can see
names/size in "ls") and can create new files - AGAIN WITHOUT key

5. user1 adds passwd1 with ecryptfs-manager - so passwd2-key is in
 <at> keyring of root and passwd1-key is in keyring of user1
(Continue reading)

Jason Robo | 19 Jan 2010 09:21
Picon
Favicon

Fw: Re:Recovering Files From eCryptfs Encrypted Home

I decided to reinstall ubuntu studio with an encrypted home folder and I couldn't get back to my data. I know my password and I don't know what to do since I can't tell what is wrong with either the source or destination folder is the problem. That might be all the help I need. I'm trying to do this with a 9.10 live install cd. The size of the partition is 136gb, the size of the content in the home folder is 87gb.

First, I tried the command "ecryptfs-mount-private" and received in return "ERROR: Encrypted private directory is not setup properly." I tried "login robo" and I'm quite certain what my password was before, it tells me "login incorrect."

I tried this technique also found at:

http://www.kaijanmaki.net/blog/2009/10/26/recovering-files-from-ecryptfs-encrypted-home/

but got this message:

Not adding sig to user sig cache file; continuing with mount.

Error mounting eCryptfs: [-2] No such file or directory

Check your system logs; visit <http://launchpad.net/ecryptfs>


I have no clue what to do or how to tell if the source and destination folder are accurate. What type of system log checks can I do, I'm rather newbish and would greatly appreciate a hand here. I've verified that the OldHome and OldPrivate exist. What else can I do? Should I break up my 20gb partition for my OS and install 9.10 with a home folder so I can reboot as was potentially necessary in the link above?

Thanks,

Jason Robo

"Revolution is a serious thing, the most serious thing about a revolutionary's life. When one commits oneself to the struggle, it must be for a lifetime."
Angela Davis

STATEMENT OF CONFIDENTIALITY
The information contained in this electronic message and any attachments may contain confidential or privileged information intended for the exclusive use of the addressee(s). If you are not the intended recipient, please notify the sender by reply e-mail and destroy all copies of the original message and any attachments. In accordance with Electronic Communications Privacy Act, 18 U.S.C.§§ 2510-2521.


Alberto Bertogli | 6 Nov 2009 23:07
Picon

Strange getcwd() behaviour


Hi!

A friend is having a very strange bug, that I think (I'm not sure) it might be
ecryptfs related. She has Ubuntu 9.10 (installed 9.04, then upgraded) and uses
ecryptfs to encrypt her home directory (using the standard Ubuntu setup).

Sometimes (no idea when or why) the following happens: using GNU screen, you
open a new shell (ctrl-a c) bash prompt says it's in '/'; pwd says it's in
'/'.

ls shows the contents of her home directory. You can do cat <file in her home
directory> and it works doing cat <file in /> does not work.

I've done a couple of straces and the behaviour is consistant with the current
directory being her home, but getcwd() returning '/'.  I verified this also
using Python's os module, just in case it was a tool issue.

I can also cd <dir inside her home> and pwd shows '/<dir inside her home>',
with the same behaviour as before. While I'm in there, I get the same
behaviour as before (cat works, open works, etc., but getcwd() returns the
wrong directory). However, if I do 'cd /<dir in her home>' I get ENOENT.

The problem goes away if I do 'cd' or 'cd /<her home dir>'

>From what I can see, it looks like getcwd() is using '/' instead of $HOME.

At the moment I can reproduce this at will by creating new shells inside an
existing screen. It does not happen in new terminals. She said this has
happened before, but has no idea when or why (although it happened also in
9.04). I'm not sure if after she reboots or closes this screen it will be so
easy to reproduce (it looks like the shells are inheriting this behaviour from
the screen process).

If you need any further information (or want me to test anything), please let
me know.

Thanks a lot,
		Alberto

PS (just in case it's not the usual procedure): please CC me on replies, as
I'm not subscribed to the list.

eilaf mugbil | 15 Oct 2009 22:40
Picon

Which directory in my server should I encrypt ?

Hello;

I want to ask, Which directory in my Linux server (for example http server) should I encrypt using ecryptfs?
can i encrypt /etc ?



--
Eilaf Hamad Elnil Mugbil
University Of Khartoum
School Of Mathematical science

Gmane