LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 05-28-2014, 09:24 AM   #1
unclesamcrazy
Member
 
Registered: May 2013
Posts: 188

Rep: Reputation: 1
ubuntu 13.10 - reset root password


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
 
Old 05-28-2014, 09:35 AM   #2
Habitual
LQ Addict
 
Registered: Jan 2011
Location: Youngstown, Ohio
Distribution: LM17.1/Xfce4.11.8
Posts: 7,195
Blog Entries: 10

Rep: Reputation: 1986Reputation: 1986Reputation: 1986Reputation: 1986Reputation: 1986Reputation: 1986Reputation: 1986Reputation: 1986Reputation: 1986Reputation: 1986Reputation: 1986
See How to reset your password in Ubuntu
Specifies recovery mode, not maintenance mode.

Hope that helps.
 
Old 05-28-2014, 09:38 AM   #3
GaWdLy
Member
 
Registered: Feb 2013
Location: San Jose, CA
Distribution: RHEL/CentOS/Fedora
Posts: 457

Rep: Reputation: Disabled
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.
 
Old 05-28-2014, 09:40 AM   #4
unclesamcrazy
Member
 
Registered: May 2013
Posts: 188

Original Poster
Rep: Reputation: 1
Quote:
Originally Posted by Habitual View Post
See How to reset your password in Ubuntu
Specifies recovery mode, not maintenance mode.

Hope that helps.
Yes I followed the same link. I chose recovery mode option but when I select root. It asks me root password.
 
Old 05-28-2014, 09:43 AM   #5
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,464

Rep: Reputation: Disabled
I thought ubuntu didn't use root passwords.
Quote:
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
 
Old 05-28-2014, 09:54 AM   #6
unclesamcrazy
Member
 
Registered: May 2013
Posts: 188

Original Poster
Rep: Reputation: 1
Quote:
Originally Posted by jdkaye View Post
I thought ubuntu didn't use root passwords.

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)...
 
Old 05-28-2014, 10:20 AM   #7
eklavya
Member
 
Registered: Mar 2013
Posts: 619

Rep: Reputation: 136Reputation: 136
Quote:
Originally Posted by unclesamcrazy View Post
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!
 
Old 05-29-2014, 01:50 AM   #8
unclesamcrazy
Member
 
Registered: May 2013
Posts: 188

Original Poster
Rep: Reputation: 1
Quote:
Originally Posted by eklavya View Post
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.

Thanks...
 
Old 05-29-2014, 02:00 AM   #9
hilyard
Member
 
Registered: Jan 2010
Location: Inland PNW
Distribution: Lite | siduction
Posts: 291

Rep: Reputation: 66
Hit <Ctrl-Alt_F2>
login as usual
once at user prompt, type in
PHP Code:
sudo passwd root 
and follow the directions-- first enter password for User, then enter a "New UNIX Password" twice.
type in
PHP Code:
init 6 
You should be able to login as root (do not do so while connected to any network, as a security suggestion)
 
Old 05-29-2014, 03:04 AM   #10
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,464

Rep: Reputation: Disabled
@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
 
Old 05-29-2014, 03:56 AM   #11
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,838

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
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
Quote:
sudo passwd root
 
Old 05-29-2014, 05:31 AM   #12
eklavya
Member
 
Registered: Mar 2013
Posts: 619

Rep: Reputation: 136Reputation: 136
https://help.ubuntu.com/community/LostPassword
You have already tried standard way now tried other two ways mentioned in above url.
 
Old 05-29-2014, 05:57 AM   #13
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 2,330
Blog Entries: 1

Rep: Reputation: 449Reputation: 449Reputation: 449Reputation: 449Reputation: 449
Quote:
Originally Posted by unclesamcrazy View Post
Code:
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.
 
Old 05-29-2014, 06:00 AM   #14
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,464

Rep: Reputation: Disabled
Quote:
Originally Posted by EDDY1 View Post
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.
 
Old 05-29-2014, 09:19 PM   #15
Emerson
LQ Guru
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~arch
Posts: 5,872

Rep: Reputation: Disabled
You do not need root password in single user mode, you will be given root shell no questions asked.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Reset Root password hbenway AIX 9 08-19-2008 05:13 PM
How to retrieve( or reset) root password in Mandrake Linux, as I forgot my password? Reghunath Linux - Software 4 05-08-2008 05:11 AM
How to reset root password in Ubuntu? concoran Linux - Newbie 7 12-13-2007 04:04 PM
reset root password kapslock Debian 14 07-27-2006 08:08 AM
Reset Root password sdsouza Linux - Software 5 11-12-2003 05:50 PM


All times are GMT -5. The time now is 02:36 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration