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 03-29-2012, 01:17 AM   #1
ravi_nandula
Member
 
Registered: Sep 2011
Posts: 81

Rep: Reputation: Disabled
Unhappy Unable to reset the root user of ubuntu


Hi everyone,

I am not able to reset the root user passwd in ubuntu 6.10 server edition.

I am doing the general passwd reset process....but it's not working...

Help me to change the passwd of root user in ubuntu.

Thanks in Advance
 
Old 03-29-2012, 01:25 AM   #2
descendant_command
Senior Member
 
Registered: Mar 2012
Posts: 1,876

Rep: Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643
Log in with the current password.
Type 'passwd'.
Press 'enter'.
Type new password.
Type new password again.
Done.
 
Old 03-29-2012, 01:27 AM   #3
ravi_nandula
Member
 
Registered: Sep 2011
Posts: 81

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by descendant_command View Post
Log in with the current password.
Type 'passwd'.
Press 'enter'.
Type new password.
Type new password again.
Done.
I am not able login at all.....How can I type the cmd which you told to type.......
 
Old 03-29-2012, 01:33 AM   #4
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Gurgaon, India
Distribution: Cent OS 6/7
Posts: 4,631

Rep: Reputation: Disabled
Do you have grub installed? You can edit the kernel parameters in grub and enter into single user mode directly. It will take you to root shell directly without any password. There you can change the password for root.
 
Old 03-29-2012, 01:35 AM   #5
ravi_nandula
Member
 
Registered: Sep 2011
Posts: 81

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by linuxlover.chaitanya View Post
Do you have grub installed? You can edit the kernel parameters in grub and enter into single user mode directly. It will take you to root shell directly without any password. There you can change the password for root.
yah I am entering into single user recovery mode with the help of grub........But I am not getting the root shell in ubuntu...
But I am getting in Redhat.......I am facing problem with ubuntu......is there any other process to reset passwd in ubuntu??????????????
 
Old 03-29-2012, 01:40 AM   #6
ravi_nandula
Member
 
Registered: Sep 2011
Posts: 81

Original Poster
Rep: Reputation: Disabled
Instead of entering into root shell........it is displaying like this

Give root password for maintenance:
(or type CNTRL +D to continue)

Above is the msg I am getting and it is not allowing to enter password.....so pressed CNTRL+D and coming to normal root login page..........
 
Old 03-29-2012, 01:56 AM   #7
descendant_command
Senior Member
 
Registered: Mar 2012
Posts: 1,876

Rep: Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643
So is the root user enabled?
Do you know the previous root password?
 
Old 03-29-2012, 01:57 AM   #8
ravi_nandula
Member
 
Registered: Sep 2011
Posts: 81

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by descendant_command View Post
So is the root user enabled?
Do you know the previous root password?
No I dont know the pervious root password.......
what is that root user enable ...I did not get you??????????
 
Old 03-29-2012, 02:05 AM   #9
descendant_command
Senior Member
 
Registered: Mar 2012
Posts: 1,876

Rep: Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643
In ubuntu the root user is disabled by default, in favor of using sudo for admin tasks.
Login as an admin user (one with sudo privs) and type 'sudo passwd root'.
 
Old 03-29-2012, 02:28 AM   #10
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Gurgaon, India
Distribution: Cent OS 6/7
Posts: 4,631

Rep: Reputation: Disabled
You should also be able to use the recovery mode in Ubuntu to change the root password. Similar to what is shown in this link:
http://www.psychocats.net/ubuntu/resetpassword
 
  


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
[SOLVED] unable to reset root password in RHEL6 -rof- Red Hat 6 07-01-2012 07:50 AM
Unable to reset the root password for mysql on fedora cll975dll Linux - Newbie 1 08-08-2009 09:47 PM
Unable to reset mysql root password soylentgreen Linux - Server 5 08-02-2008 10:05 PM
How to reset root password in Ubuntu? concoran Linux - Newbie 7 12-13-2007 03:04 PM
Unable to logon on as non-root user after update as unable to set executable context pls198 Fedora 2 04-09-2004 11:41 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:06 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
Open Source Consulting | Domain Registration