Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have ubuntu 13.10. I have lost root password.
There are several sites which claimed to recover root password in easy steps. I have followed them but I am facing a problem.
I have opened "Advance options". I have selected "root - Drop to root prompt" option but other sites say, I have to run
Code:
# mount -o rw,remount /
but in my case it says,
Code:
Enter root password for maintenance or ctrl+D to continue.
Now I am not able to go on command prompt because I do not know root password.
How should I open command prompt to reset root password.
Please help
I am not an Ubuntu person, so I could be totally off, here. Isn't Ubuntu like most other Linux platforms with a single user mode? Normally, it's handled in the red Hat variants by entering 'single' in the boot command of the kernel at startup.
As default Ubuntu has no password set for the root user. To gain root access you have to type in your own user password. This is the password you set for the first user while installing Ubuntu.
Is it the root password you've forgotten or is it your own?
jdk
You will kill me.
Both passwords (They were random strings for security purpose written on a notebook)...
I doubt it is your system.
Are you trying to know a way to be inside a Linux system if you don't know user password and root password?
Because if root password has been set then it is better to ask root, he can reset your password.
and if you were root then I remember a dialog of movie Pirates of the Caribbean: Dead Man's Chest (2006)
Quote:
Jack Sparrow: Technically, I was only captain for two years, then I was viciously mutinied upon. Davey Jones: Then you were a poor captain, but a captain nonetheless!
I doubt it is your system.
Are you trying to know a way to be inside a Linux system if you don't know user password and root password?
Because if root password has been set then it is better to ask root, he can reset your password.
and if you were root then I remember a dialog of movie Pirates of the Caribbean: Dead Man's Chest (2006)
Yes it is my system indeed and unfortunately I am the root because it is my personal computer.
Security purpose is, my siblings.
I would love to tell you my family details but later.
and definitely you will have Oscar for best dialogs
but seriously please help.
I am going to reinstall it. if you have any way, Please tell me.
@hilyard
From post #6 I had the impression that the OP had forgotten both passwords -- his own and root's. How can he log into a tty without any password?
jdk
Ubuntu doesn't enable root by default.
The only way to enable root is to do it after install, the user has sudo., which acts as root.
All user has to do to enable root is type command
Enter root password for maintenance or ctrl+D to continue.
That's normally something you get when the bootloader and/or the /etc/fstab of the install get the location of the / filesystem wrong. Using UUIDs is the way to go for that type of thing. At least on my hardware where multiple drives include PATA and SATA drives can make /dev/ names a game of roulette.
Ubuntu doesn't use root passwords. The main user has root priviledges with the use of sudo. By nature of being in the adm and sudo groups.
But...
If you must...
You can break how ubuntu works and set a root password. You can boot a live linux version, and chroot to the ubuntu install and use the passwd command to do that. I don't know how to UNDO that and you should NOT do that, but you can.
For commands you see prefixed with # in examples, try prefixing those commands with sudo first. But by the error message shown, you're not getting to ubuntu to do any of that. You're stuck in bootloader and configuration land.
Ubuntu doesn't enable root by default.
The only way to enable root is to do it after install, the user has sudo., which acts as root.
All user has to do to enable root is type command
Yes, I asked about that in post = #5 and the OP's response is in #6.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.