LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Unable to reset the root user of ubuntu (https://www.linuxquestions.org/questions/linux-newbie-8/unable-to-reset-the-root-user-of-ubuntu-937001/)

ravi_nandula 03-29-2012 01:17 AM

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

descendant_command 03-29-2012 01:25 AM

Log in with the current password.
Type 'passwd'.
Press 'enter'.
Type new password.
Type new password again.
Done.

ravi_nandula 03-29-2012 01:27 AM

Quote:

Originally Posted by descendant_command (Post 4639307)
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.......

linuxlover.chaitanya 03-29-2012 01:33 AM

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.

ravi_nandula 03-29-2012 01:35 AM

Quote:

Originally Posted by linuxlover.chaitanya (Post 4639312)
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??????????????

ravi_nandula 03-29-2012 01:40 AM

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..........

descendant_command 03-29-2012 01:56 AM

So is the root user enabled?
Do you know the previous root password?

ravi_nandula 03-29-2012 01:57 AM

Quote:

Originally Posted by descendant_command (Post 4639329)
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??????????

descendant_command 03-29-2012 02:05 AM

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'.

linuxlover.chaitanya 03-29-2012 02:28 AM

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


All times are GMT -5. The time now is 04:38 PM.