daily pastebin goal
58%
SHARE
TWEET

Untitled

a guest Jan 24th, 2012 49 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ubuntu@ubuntu:~$ cd /media/
  2. ubuntu@ubuntu:/media$ sudo mount -t ecryptfs /media/56737839-fa4b-47b2-8de6-1a7e377d3910/home/mark/ /media/encrypted/
  3. Passphrase:
  4. Select cipher:
  5.  1) aes: blocksize = 16; min keysize = 16; max keysize = 32 (loaded)
  6.  2) blowfish: blocksize = 16; min keysize = 16; max keysize = 56 (not loaded)
  7.  3) des3_ede: blocksize = 8; min keysize = 24; max keysize = 24 (not loaded)
  8.  4) cast6: blocksize = 16; min keysize = 16; max keysize = 32 (not loaded)
  9.  5) cast5: blocksize = 8; min keysize = 5; max keysize = 16 (not loaded)
  10. Selection [aes]:
  11. Select key bytes:
  12.  1) 16
  13.  2) 32
  14.  3) 24
  15. Selection [16]:
  16. Enable plaintext passthrough (y/n) [n]:
  17. Enable filename encryption (y/n) [n]:
  18. Attempting to mount with the following options:
  19.   ecryptfs_unlink_sigs
  20.   ecryptfs_key_bytes=16
  21.   ecryptfs_cipher=aes
  22.   ecryptfs_sig=4737fb592c45b66d
  23. WARNING: Based on the contents of [/root/.ecryptfs/sig-cache.txt],
  24. it looks like you have never mounted with this key
  25. before. This could mean that you have typed your
  26. passphrase wrong.
  27.  
  28. Would you like to proceed with the mount (yes/no)? : yes
  29. Would you like to append sig [4737fb592c45b66d] to
  30. [/root/.ecryptfs/sig-cache.txt]
  31. in order to avoid this warning in the future (yes/no)? : yes
  32. Successfully appended new sig to user sig cache file
  33. Mounted eCryptfs
  34. ubuntu@ubuntu:/media$ sudo adduser --no-create-home mark
  35. Adding user `mark' ...
  36. Adding new group `mark' (1000) ...
  37. Adding new user `mark' (1000) with group `mark' ...
  38. Not creating home directory `/home/mark'.
  39. Enter new UNIX password:
  40. Retype new UNIX password:
  41. passwd: password updated successfully
  42. Changing the user information for mark
  43. Enter the new value, or press ENTER for the default
  44.         Full Name []:
  45.         Room Number []:
  46.         Work Phone []:
  47.         Home Phone []:
  48.         Other []:
  49. Is the information correct? [Y/n]
  50. ubuntu@ubuntu:/media$ su mark
  51. Password:
  52. mark@ubuntu:/media$ ecryptfs-mount-private
  53. ERROR: Encrypted private directory is not setup properly
  54. mark@ubuntu:/media$ whoami
  55. mark
  56. mark@ubuntu:/media$ ls -la
  57. total 8
  58. drwxr-xr-x  1 root root  100 2012-01-24 08:33 .
  59. drwxr-xr-x  1 root root  240 2012-01-24 01:25 ..
  60. drwxr-xr-x 27 root root 4096 2012-01-09 03:02 56737839-fa4b-47b2-8de6-1a7e377d3910
  61. lrwxrwxrwx  1 root root    6 2012-01-24 01:25 cdrom -> /cdrom
  62. dr-x------  2 mark mark 4096 2009-10-31 02:55 encrypted
  63. mark@ubuntu:/media$ cd encrypted/
  64. mark@ubuntu:/media/encrypted$ ls
  65. Access-Your-Private-Data.desktop  README.txt
  66. mark@ubuntu:/media/encrypted$ ecryptfs-mount-private
  67. ERROR: Encrypted private directory is not setup properly
  68. mark@ubuntu:/media/encrypted$ ecryptfs-mount-private
  69. ERROR: Encrypted private directory is not setup properly
  70. ubuntu@ubuntu:/media$ sudo ecryptfs-recover-private
  71. INFO: Searching for encrypted private directories (this might take a while)...
  72. ^Cubuntu@ubuntu:/media$ cd 56737839-fa4b-47b2-8de6-1a7e377d3910/
  73. ubuntu@ubuntu:/media/56737839-fa4b-47b2-8de6-1a7e377d3910$ ls
  74. bin    dev   initrd.img      lib32       media  proc  selinux  tmp  vmlinuz
  75. boot   etc   initrd.img.old  lib64       mnt    root  srv      usr  vmlinuz.old
  76. cdrom  home  lib             lost+found  opt    sbin  sys      var
  77. ubuntu@ubuntu:/media/56737839-fa4b-47b2-8de6-1a7e377d3910$ cd home/
  78. ubuntu@ubuntu:/media/56737839-fa4b-47b2-8de6-1a7e377d3910/home$ ls
  79. mark  server
  80. ubuntu@ubuntu:/media/56737839-fa4b-47b2-8de6-1a7e377d3910/home$ cd mark
  81. bash: cd: mark: Permission denied
  82. ubuntu@ubuntu:/media/56737839-fa4b-47b2-8de6-1a7e377d3910/home$ sudo ecryptfs-recover-private mark/
  83. INFO: Found [mark/].
  84. Try to recover this directory? [Y/n]: y
  85.  
  86. INFO: Could not find your wrapped passphrase file.
  87. INFO: To recover this directory, you MUST have your original MOUNT passphrase.
  88. INFO: When you first setup your encrypted private directory, you were told to record
  89. INFO: your MOUNT passphrase.
  90. INFO: It should be 32 characters long, consisting of [0-9] and [a-f].
  91.  
  92. Enter your MOUNT passphrase:
  93. INFO: Success!  Private data mounted read-only at [/tmp/ecryptfs.UaDoUsVV].
  94. ubuntu@ubuntu:/media/56737839-fa4b-47b2-8de6-1a7e377d3910/home$ cd /tmp/ecryptfs.UaDoUsVV/
  95. bash: cd: /tmp/ecryptfs.UaDoUsVV/: Permission denied
  96. ubuntu@ubuntu:/media/56737839-fa4b-47b2-8de6-1a7e377d3910/home$ su mark
  97. Password:
  98. mark@ubuntu:/media/56737839-fa4b-47b2-8de6-1a7e377d3910/home$ cd /tmp/ecryptfs.UaDoUsVV/
  99. mark@ubuntu:/tmp/ecryptfs.UaDoUsVV$ ls
  100. Access-Your-Private-Data.desktop  README.txt
  101. mark@ubuntu:/tmp/ecryptfs.UaDoUsVV$ ecryptfs-mount-private
  102. ERROR: Encrypted private directory is not setup properly
  103. mark@ubuntu:/tmp/ecryptfs.UaDoUsVV$
RAW Paste Data
Pastebin PRO WINTER Special!
Get 40% OFF Pastebin PRO accounts!
Top