0

I forgot my sudo password, which is always asked for when I carry out any download in terminal. So I am unable to download any software.

Though I reset in recovery mode, again it's showing 'wrong password'. Please help me to solve this.

Zanna
  • 70,465
swapnil rkey
  • 1
  • 1
  • 1
  • 1

1 Answers1

2

Restart your computer, in grub select recovery mode then select root. After that mount your partition with write permissions using mount -o rw,remount / then do passwd {username of which user you want to change password } and reset your passwords on the users you want.

AsenM
  • 1,048
  • would this also work if i use the inbuild encryption for the home directory? In other words, would i be able to bypass the encryption-password this way? – AlexOnLinux Jan 25 '18 at 17:03
  • if you dont mind doing the testing, i would be glad to recieve the info on that. – AlexOnLinux Jan 25 '18 at 17:09
  • @AlexOnLinux Asked some coworkers because, I don't use ubuntu and they said it's not possible to bypass the encryption. I can add that it probably can be cracked by brute force but it would take huge amount of processing power and time. – AsenM Jan 25 '18 at 17:14
  • ah okay thx. i thought as root you would be able to chnge the users passwords, and in the end this would allow you to login as the user and get the directory decrypted. – AlexOnLinux Jan 25 '18 at 17:46