I forgot my Ubuntu password. I entered recovery mode and changed the password for my user with passwd as root. I haven't used that machine for a long long time, so I also forgot that my home folder was actually encrypted using ecryptfs. My bad, but I don't have that 32-char long MOUNT passphrase...  What are the options in this case? Have I lost all or is there still a chance to recover?   is there a point to try with ecryptfs-recover-private and try to recall this forgotten LOGIN password which I changed with passwd? Will it return a success code if I eventually manage to find the password at the back of my head? if the point above doesn't happen, should I try the solution described here?  and run the shadow crack?   Or is there anything else I can do? I wouldn't like to break it more.  Many thanks  UPDATE: I think I found the old password. I am able to unwrap the passphrase. What's the way to go now? Go again root and passwd the user to the old password again or do a rewrap? Which is recommended? I just don't want to screw up things again :)
122580
I am on Ubuntu 12.10 with one user using encrypted home.  A while back I have changed by user password and then forgot it.  I then made a backup of my files using  to an external drive. I was about to delete my system and do a fresh install when I realized that there is a recovery option in which I can reset my user password. Using  I have set a new password for my user.  After rebooting I can log-in in Unity using my new password but I am thrown back to the Unity screen immediately. (No message about false password)  Using the terminal I can log in using the new user-password.  How can I re-enable my machine to decrypt my ecrypfs encrypted home with the unwrapped passphrase I know?
121236
I recently installed LAMP on Ubuntu 13.04(32-bit) but forgot my phpMyAdmin password. How can I reset its password without re-installing it?
34484
I am using a laptop . I was thinking to have a support in my Ubuntu machine.  When an incorrect password is entered, a picture is taken later revealing who has been trying to gain access.  I have searched around and the only thing I have found is stuff to do this on Macs. Is It possible to write a script for Ubuntu to do same .  If possible then what is a script or Software to make this happen.
95323
I have installed Linux Bash on Windows 10 (available from Microsoft), but I've forgotten my password.  I've searched for a solution but I only find suggestions that involve doing something before the system boots, like accessing recovery mode, but that will not work in this case as this Ubuntu is just an application within a Windows system and doesn't have its own boot process.  How can I reset my password?
97588
i am stuck with a big problem.  I have encrypted my linux drive with LUKS and now I can't remember it. During boot, it prompts me for the passphrase, but I went into troubleshooting mode and deleted the entry from /etc/crypttab so at least I can boot now into my account but that doesn't solve the problem. I can't access my drive /dev/sda5.  Can someone please show me a way to crack the passphrase or is there no way around it.
377
I need to reset my password. I have followed these steps:    However, then I go to "root" or "netroot" recovery options, it tells me:  Give root password for maintenance (or type Control-D to continue)   Clearly, I do not know the root password. If I type CTRL+D, I return to the list of options. From  I read:  Under chapter 'The Other Way':  4. Highlight the line that begins kernel and press 'e' to edit`   But in the grub configuration file I have no line that starts with kernel. Only:  setparams 'Ubuntu...' recordfail set gxfpayload... insmod part_msdos insmod ext2 set root=... search --no-floppy... linux /boot/vmlinuz-2.6.38... initrd /boot/initrd.img-2.6....   Those are all lines in my GRUB. Which line should I edit? Or is there another way to reset my password?
48658
I'm using an Alestic image which disables root SSH logins, but provides a user "ubuntu" with NOPASSWD sudo privileges. See .  In the course of trying to add a new user to the sudoers file I inadvertantly created another line for the "ubuntu" user, this time without NOPASSWD. I have now apparently lost root access to this machine.  Is there some way to mount the EBS root volume on a different instance (fixing the sudoers file) and then re-launch the server?  Or am I totally screwed?
88497
I you have an account with an encrypted home folder, you can't access the user's plain text data in their home folder if that user hasn't logged in, yet, since the system last booted up. This is what I expected because it should in fact not be practically feasible to access a user's home folder without their password being entered.  However, I found that when a user with an encrypted home folder logs in and then logs out, the plain text data in their home folder still is accessible to other users. Sufficient access privileges are required, of course.  w doesn't list the user and the output of sudo pgrep -u &lt;username&gt; is empty, indicating that the user doesn't have any running processes.  What is the reason for this behavior? Why not just lock the user's home folder after they logged out?
85798
Well, I have accidentally deleted my Ubuntu drive. I just want to recover all the contents of /home.   Is there a way to do it? I referred to , where I need to specify the extensions of files. And in my case, I don't know actual extensions. So, is there any utility which can let me recover my /home folder alone?  I have not even formatted that drive or touched it at all. So no write has been done on that drive.  If you have suggestions on how to recover, please tell me.
89624
I've been reading . Apparently I would gain root access if I hold down enter (somewhere) for 70 seconds. I tried it on a password prompt but it gave me like 3 attempts and stopped. I tried it on a tty but it didn't work also. Am I not vulnerable or am I doing it wrong?
25313
I am on Ubuntu and I have forgotten the password for my Gnome Keyring (yes, stupid me, I know). Any way I can get it back? I have already looked at , but it says it's not possible if my home directory is encrypted and unfortunately my home directory is encrypted.
46035
I have .rar file that is password protected, but I accidentally have forgotten the password. The file extremely important to me.  How can I get my file back? In windows, there was many programs that could remove the password of such a file. Is there one for Ubuntu?
56748
on one of the boxes I don't control at work I use ssh keys to log in. Our passwords are set to expire after a few months. What happens if I don't reset my password and it expires? will I still be able to login? Does what happens depend on some sshd setting? or some pam setting?
86034
I want to have an encrypted directory (not homedir!) let's say /testdata.  I have used the following command and parameters to encrypt it:  root@pc:~# mount -t ecryptfs /testdata/ /testdata/ Passphrase:  Select cipher:   1) aes: blocksize = 16; min keysize = 16; max keysize = 32  2) blowfish: blocksize = 8; min keysize = 16; max keysize = 56  3) des3_ede: blocksize = 8; min keysize = 24; max keysize = 24  4) twofish: blocksize = 16; min keysize = 16; max keysize = 32  5) cast6: blocksize = 16; min keysize = 16; max keysize = 32  6) cast5: blocksize = 8; min keysize = 5; max keysize = 16 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]: y Filename Encryption Key (FNEK) Signature [b9fc92f854a4c85b]:  Attempting to mount with the following options:   ecryptfs_unlink_sigs   ecryptfs_fnek_sig=b9fc92f854a4c85b   ecryptfs_key_bytes=16   ecryptfs_cipher=aes   ecryptfs_sig=b9fc92f854a4c85b 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 [b9fc92f854a4c85b] 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   This command creates this file:  root@pc:~# cat .ecryptfs/sig-cache.txt  b9fc92f854a4c85b   Now I want to change the passphrase I used before. I found the ecryptfs-rewrap-passphrase command but I am not sure if I am on the right path:  root@pc:~# ecryptfs-rewrap-passphrase .ecryptfs/sig-cache.txt  Old wrapping passphrase:  New wrapping passphrase:  New wrapping passphrase (again):  Error: Unwrapping passphrase failed [-5] Info: Check the system log for more information from libecryptfs   /var/log/syslog says:  Jul 13 13:16:19 pc ecryptfs-rewrap-passphrase: ecryptfs_unwrap_passphrase: PK11_CipherOp() error; SECFailure = [-1]; PORT_GetError() = [-8188]   I have a newbie status in regards to ecryptfs and I would appreciate some enlightenment here.
76595
I accidentally used  sudo chmod 3 /   which gives a execute and write permission to the root directory, while deleting the read permission. How can I recover from this, I cannot even use sudo now.
121440
I have an extra ext4 formatted partition which I would like to ecrypt with ecryptfs. I have chosen not to go for home directory ecryption and having a encrypted private directory also hasn't helped me.   So, the remaining option for me is to encrypt the extra partition. So, I want to know what is the best way to achieve this. The drive should get mounted when I log in. And I should be able to move my Documents and other important folders in the home directory to the encrypted drive, and symlink them back to the home directory. As I save some passwords in firefox, should I move the hidden firefox folder in the home directory to the encrypted drive?
74943
I previously had been using TrueCrypt, but recently re-installed Ubuntu and used 12.10's full disk encryption option (re-installed for other reasons). I never got any choice in how it did that. I don't know what cipher is used or the key size, or anything besides the passphrase really. Where can I find details about this sda5_crypt?  Edit: Seeing this mistake is humorous, but for those curious, sda5 refers to the hard drive and partition, not the encryption system.