Ubuntu Server Password Recovery | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 11

Ubuntu Server Password Recovery

I will immediately say that I know perfectly how to do it. I bought a server computer cheaply. working, but with a password. The problem is that on ubuntu in the command line I can not change the RO (read only) parameters to RW (read & write). Through recovery mode - root: the command line does not exit, but writes Enter the password or say "control-D". Conclusion: the right to Change Password is blocked. How to fix it?

10th May 2018, 5:39 AM
アルゴリズム X
アルゴリズム X - avatar
13 Answers
+ 2
Usually you don't need a password to log in to the root command line through recovery mode. Have you tried pressing Ctr + D ? Otherwise I'd recommend you to install a Ubuntu (or an other Linux server distribution) freshly. If you want to backup your data copy /etc and maybe /home to an other HDD
14th May 2018, 2:33 PM
Aaron Eberhardt
Aaron Eberhardt - avatar
+ 9
I appreciate your answers. Yes. I pressed ctrl D, after that the system drops me on the resume line in recovery mode. and yes, I probably have no choice, I will reinstall the system.
14th May 2018, 3:01 PM
アルゴリズム X
アルゴリズム X - avatar
+ 8
It can not be done that way on this PC
14th May 2018, 10:23 AM
アルゴリズム X
アルゴリズム X - avatar
+ 7
ok. Live CD , Ubuntu ISO, SUDO SU is not working too. system wrote the same thing...
14th May 2018, 10:34 AM
アルゴリズム X
アルゴリズム X - avatar
+ 7
Aaron Eberhardt. I did it. Recoveru Mode is not help too. because: Root - enter. System is wrote: enter the password or Control D. (no Command line) I suspect that the system has somehow installed write protection/block. I can't change RO mode to RW mode.
14th May 2018, 10:42 AM
アルゴリズム X
アルゴリズム X - avatar
+ 7
Any ideas about Blocking RO/RW mode.???
14th May 2018, 10:44 AM
アルゴリズム X
アルゴリズム X - avatar
+ 6
Ok, if not difficult to explain. how to change it. what are the commands and where to enter. because I entered the "E" ubuntu. wrote in the linux line "rw init = / bin / bash (or sh)" + f10. And then "mount | grep -w/" "passwd root (or user)" entering new password, but nothing happen. how to change sudo settings, where to enter?
10th May 2018, 5:51 AM
アルゴリズム X
アルゴリズム X - avatar
+ 6
Ok. For more additional information I'll put screenshots soon... in here..
10th May 2018, 2:40 PM
アルゴリズム X
アルゴリズム X - avatar
+ 6
Yes I want to change the password
13th May 2018, 12:33 PM
アルゴリズム X
アルゴリズム X - avatar
+ 6
I told to You. Ubuntu - E - init=/bin/bash F10. Goes to Command line. I write : passwd "username" and nothing happend. I can't even write full username, system blocked me.
14th May 2018, 10:27 AM
アルゴリズム X
アルゴリズム X - avatar
+ 2
have you tried: passwd username ? Btw. root has all privileges, so he can read write nearly everything
10th May 2018, 5:45 AM
Aaron Eberhardt
Aaron Eberhardt - avatar
+ 2
you need to get to the root command line in recovery mode first, if you are there you will notice a # after the username instead of $. Just asking, you want to change the password, right?
10th May 2018, 6:00 AM
Aaron Eberhardt
Aaron Eberhardt - avatar
+ 1
you need to boot in recovery mode and then select root console
14th May 2018, 10:34 AM
Aaron Eberhardt
Aaron Eberhardt - avatar