Problem decrypting an nfs mount
I have two machines, both with an encrypted homedir and running Ubuntu 10.04.
I would like to have all my important files on the desktop machine and still be able to use or edit them on my laptop machine. Also I would like to keep both my homedirs encrypted.
So, I have mounted my .Private folder (with filename encryption) of the desktop machine over nfs on the laptop in a separate directory. When I decrypt this on the laptop and run 'ls', the correct filenames appear, but my dmesg shows the error:
ecryptfs_
Any subsequent runs of 'ls' show no files! Running 'mount' or 'df' instead of 'ls' does not give this error and they can be run multiple times.
I can now unmount the decrypted mountpoint and mount it again, and the same behaviour occurs.
Can anyone help me solve this problem?
Background:
I have copied the .ecryptfs folder of the desktop machine to the laptop and changed the Private.mnt to point to the correct mountpoint.
To facilitate mounting I copied mount.ecryptfs_
diff mount.ecryptfs_
52a53
> #define MAX_PATH_SIZE 0xa000
343c344
< char *dev, *mnt, *opt;
---
> char *cw_dir, *buf, *dev, *mnt, *opt;
346a348,357
> /* Get the current working directory.
> * The directories .ecryptfs and .Private are searched in the current
> * working directory instead of in pwd->pw_dir as is done in the
> * program mount.ecryptfs_
> */
> if ((cw_dir = get_current_
> perror(
> goto fail;
> }
>
390c401
< sig = fetch_sig(
---
> sig = fetch_sig(cw_dir, 0);
395c406
< sig_fnek = fetch_sig(
---
> sig_fnek = fetch_sig(cw_dir, 1);
404c415
< (asprintf(&dev, "%s/.%s", pwd->pw_dir, ECRYPTFS_
---
> (asprintf(&dev, "%s/.%s", cw_dir, ECRYPTFS_
409c420
< mnt = ecryptfs_
---
> mnt = ecryptfs_
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- eCryptfs Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Dustin Kirkland
- Solved:
- Last query:
- Last reply: