- ubuntu@ubuntu:~$ cd /media/
- ubuntu@ubuntu:/media$ sudo mount -t ecryptfs /media/56737839-fa4b-47b2-8de6-1a7e377d3910/home/mark/ /media/encrypted/
- Passphrase:
- Select cipher:
- 1) aes: blocksize = 16; min keysize = 16; max keysize = 32 (loaded)
- 2) blowfish: blocksize = 16; min keysize = 16; max keysize = 56 (not loaded)
- 3) des3_ede: blocksize = 8; min keysize = 24; max keysize = 24 (not loaded)
- 4) cast6: blocksize = 16; min keysize = 16; max keysize = 32 (not loaded)
- 5) cast5: blocksize = 8; min keysize = 5; max keysize = 16 (not loaded)
- Selection [aes]:
- Select key bytes:
- 1) 16
- 2) 32
- 3) 24
- Selection [16]:
- Enable plaintext passthrough (y/n) [n]:
- Enable filename encryption (y/n) [n]:
- Attempting to mount with the following options:
- ecryptfs_unlink_sigs
- ecryptfs_key_bytes=16
- ecryptfs_cipher=aes
- ecryptfs_sig=4737fb592c45b66d
- WARNING: Based on the contents of [/root/.ecryptfs/sig-cache.txt],
- it looks like you have never mounted with this key
- before. This could mean that you have typed your
- passphrase wrong.
- Would you like to proceed with the mount (yes/no)? : yes
- Would you like to append sig [4737fb592c45b66d] to
- [/root/.ecryptfs/sig-cache.txt]
- in order to avoid this warning in the future (yes/no)? : yes
- Successfully appended new sig to user sig cache file
- Mounted eCryptfs
- ubuntu@ubuntu:/media$ sudo adduser --no-create-home mark
- Adding user `mark' ...
- Adding new group `mark' (1000) ...
- Adding new user `mark' (1000) with group `mark' ...
- Not creating home directory `/home/mark'.
- Enter new UNIX password:
- Retype new UNIX password:
- passwd: password updated successfully
- Changing the user information for mark
- Enter the new value, or press ENTER for the default
- Full Name []:
- Room Number []:
- Work Phone []:
- Home Phone []:
- Other []:
- Is the information correct? [Y/n]
- ubuntu@ubuntu:/media$ su mark
- Password:
- mark@ubuntu:/media$ ecryptfs-mount-private
- ERROR: Encrypted private directory is not setup properly
- mark@ubuntu:/media$ whoami
- mark
- mark@ubuntu:/media$ ls -la
- total 8
- drwxr-xr-x 1 root root 100 2012-01-24 08:33 .
- drwxr-xr-x 1 root root 240 2012-01-24 01:25 ..
- drwxr-xr-x 27 root root 4096 2012-01-09 03:02 56737839-fa4b-47b2-8de6-1a7e377d3910
- lrwxrwxrwx 1 root root 6 2012-01-24 01:25 cdrom -> /cdrom
- dr-x------ 2 mark mark 4096 2009-10-31 02:55 encrypted
- mark@ubuntu:/media$ cd encrypted/
- mark@ubuntu:/media/encrypted$ ls
- Access-Your-Private-Data.desktop README.txt
- mark@ubuntu:/media/encrypted$ ecryptfs-mount-private
- ERROR: Encrypted private directory is not setup properly
- mark@ubuntu:/media/encrypted$ ecryptfs-mount-private
- ERROR: Encrypted private directory is not setup properly
- ubuntu@ubuntu:/media$ sudo ecryptfs-recover-private
- INFO: Searching for encrypted private directories (this might take a while)...
- ^Cubuntu@ubuntu:/media$ cd 56737839-fa4b-47b2-8de6-1a7e377d3910/
- ubuntu@ubuntu:/media/56737839-fa4b-47b2-8de6-1a7e377d3910$ ls
- bin dev initrd.img lib32 media proc selinux tmp vmlinuz
- boot etc initrd.img.old lib64 mnt root srv usr vmlinuz.old
- cdrom home lib lost+found opt sbin sys var
- ubuntu@ubuntu:/media/56737839-fa4b-47b2-8de6-1a7e377d3910$ cd home/
- ubuntu@ubuntu:/media/56737839-fa4b-47b2-8de6-1a7e377d3910/home$ ls
- mark server
- ubuntu@ubuntu:/media/56737839-fa4b-47b2-8de6-1a7e377d3910/home$ cd mark
- bash: cd: mark: Permission denied
- ubuntu@ubuntu:/media/56737839-fa4b-47b2-8de6-1a7e377d3910/home$ sudo ecryptfs-recover-private mark/
- INFO: Found [mark/].
- Try to recover this directory? [Y/n]: y
- INFO: Could not find your wrapped passphrase file.
- INFO: To recover this directory, you MUST have your original MOUNT passphrase.
- INFO: When you first setup your encrypted private directory, you were told to record
- INFO: your MOUNT passphrase.
- INFO: It should be 32 characters long, consisting of [0-9] and [a-f].
- Enter your MOUNT passphrase:
- INFO: Success! Private data mounted read-only at [/tmp/ecryptfs.UaDoUsVV].
- ubuntu@ubuntu:/media/56737839-fa4b-47b2-8de6-1a7e377d3910/home$ cd /tmp/ecryptfs.UaDoUsVV/
- bash: cd: /tmp/ecryptfs.UaDoUsVV/: Permission denied
- ubuntu@ubuntu:/media/56737839-fa4b-47b2-8de6-1a7e377d3910/home$ su mark
- Password:
- mark@ubuntu:/media/56737839-fa4b-47b2-8de6-1a7e377d3910/home$ cd /tmp/ecryptfs.UaDoUsVV/
- mark@ubuntu:/tmp/ecryptfs.UaDoUsVV$ ls
- Access-Your-Private-Data.desktop README.txt
- mark@ubuntu:/tmp/ecryptfs.UaDoUsVV$ ecryptfs-mount-private
- ERROR: Encrypted private directory is not setup properly
- mark@ubuntu:/tmp/ecryptfs.UaDoUsVV$
SHARE
TWEET
Untitled
a guest
Jan 24th, 2012
49
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
RAW Paste Data

