How to reset the root password on Linux Ubuntu
Linux is an operating system is extremely stable and secure than Windows, and this might make us think that recovering a forgotten password can take the form of high transaction difficulty.
Actually, on Linux there is a startup mode, termed "single user mode" that allows access to the operating system as root without the need to specify a password: access of this type is usually aimed at maintenance details, so that, for example, in this mode, the computer is started without the support network so as to prevent any risk of interference from other users.
To change the password of a user in a standard installation of Ubuntu Linux, with the boot loader, the steps are:
Booting Linux in "Single User Mode"
- Restart your computer
- Press ESC as the GRUB screen appears
- Where there is a menu item "recovery mode": select it and press "b" to access the system in "single user".
-
If there is the menu item "recovery mode":
- select the default boot configuration, then press "e" to edit it.
- Select the line that begins with "kernel" and press "e".
- Position yourself at the end of the line and add the parameter "single".
- Date sent to save the change, then press "b" to access the system in "single user".
Changing your password
Once logged in single user mode, you Inventory report to the user root. Now you can manage your password and those of all users of the system through the command "passwd username" without of course the need to know the old password.
Restarting
Once you reset the password reboot your computer and log in standard mode.
Via Hackszine












I am a Windows user and I want to spend a long time to Linux.
I have a question, ask around about why Linux is so hard to get viruses, I was told that is because to do serious harm should know precisely the root password.
But this password is so hard to find? That is nowadays crackers & company are able to deflect any protection of any kind ... or is it simply because Linux is less targeted?
Illuminatemi!
Linux is more secure than Windows is a statement by fanatics, which is not based not on a deep knowledge of neither the operating system. Behind someone that is expressed in these terms is behind ragzzino or a geek or a person perfattamente incompetent.
Recovering the root password has the same implications as those of Administrator in Windows. The spread of Linux is much lower than that of Windows so there are less tenativi spread viruses and computer attacks and those who are there, because there are wide and there are many more, are hardly in the limelight for a little notoriety of the system to grand public.
As for the idea of moving from Windows to Linux is just a folly by fanatics! (Apart from the real reasons)
@ Mark: It would be nice that substantiated your statements in a more 'constructive and not necessarily get to give the fanatic or incompetent who thinks differently from you.
If you could do with a reflection, begin to think about why almost all the servers that host critical applications that must handle financial transactions and large volumes of users (for example in the area such as banking or telecommunications) run on Linux machines , Sun, AIX, etc.. What? We would be vare with a number of fanatics and incompetent rather high ...
@ Kerrand: to write a virus for Linux and 'objectively more' difficult since it is an operating system that provides an isolation level permits much more 'robust and modular than win. Then linux has its vulnerabilities 'and even that' a fact in my Win wins again as a client (nonstante Linux is making great strides on this front) while the server side Unix-like systems are definitely the best.
Viva Linux! Fast, estable y virus free!
Cit.: If you could do with a reflection, begin to think about why almost all the servers that host critical applications that must handle financial transactions and large volumes of users (for example in the area such as banking or telecommunications) work on Linux machines, Sun, AIX, etc.. What? We would be vare with a number of fanatics and incompetent rather high
Oh, my darling, it's called legacy code why. There are applications that run on operating systems made when Torvalds was the primary ... and not because they are safe, robust, or are not Micro $ oft (or Microzozz or variants ..). Why rewrite the applications would cost millions of dollars. Million. The first argument nor his nor your so good ...
@ AF_Mcrime: happy to be your treasure!
I think the reason "legacy code" is only one aspect, not the only one. The computer still evolving and many systems are migrating to new technologies (see J2EE, SOA, ...) that, at least in my experience on applications in critical areas such as banking, ganantiscono a certain level of reliability on only one system Unix / Linux.
J2EE, SOA ... I keep seeing AS/400 and Unix (not Linux! E 'a little misleading to write Unix / Linux. ... You could write Posix but comprises all MS OS from NT onwards ...) And when companies plan new applications (though grafted on the systems mentioned above) for at least 3 years are only asp.net. But this is about companies that I follow ... Among other versions of Unix and OS/400 running are not patched for decades ... just do not expose them outside. And after several years of Linux based DMZ for some time the companies most sensitive to increased hardware solutions. With firewalls that exist right now, you can free from the bondage of the "system Linux." Dearest and rarely relevant, disputed by companies. Eu 1000 for not paying licensing MS or a couple of thousand for a firewall seriously, you pay 800 a day for the Linux system. To configure a proxy 4 days of work .... but has the proxy is open source ... so I can see how it's done eh ... want to ...
Hello, I know if I can use the command fsck in single user mode and not only on live CD. It 'just that I use Ubuntu and I'm trying to learn, but sometimes it's hard. Thank you. Regards.