LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   o.k. how can one change the root password? (https://www.linuxquestions.org/questions/linux-newbie-8/o-k-how-can-one-change-the-root-password-690839/)

alperkins 12-15-2008 09:19 PM

o.k. how can one change the root password?
 
Having a blast with Linux as a newbie. But I have one mystery in progress.

I have Ubuntu 8.10 on a second partition and now in Windows I have a virtual install of AndLinux. (the AndLinux uses Ubunto 7.10)

In both installs, I was never asked to set the root password. I just setup my main ueer id.

I've had no problem using "sudo" to do root operations, but if I try and use "su", I get no where as I don't know the root password.

Anyone have an answer? (I certainly hope it's not a "start at the beginning and install your Linux again, as I have a ton of goodies working already).

Thank you for the help guys!

Search only had ideas on MySql and other lost passwords.

gilead 12-15-2008 09:27 PM

IIRC you can just use sudo su and then the passwd command. I haven't used Ubuntu for a while now though...

jailbait 12-15-2008 09:28 PM

Here is how to set the Ubuntu root password:

http://digiassn.blogspot.com/2006/07...in-ubuntu.html

Here is how to allow root logins at the login screen:

http://digiassn.blogspot.com/2006/10...er-ubuntu.html

-----------------------
Steve Stites

vibinlakshman 12-15-2008 11:44 PM

password help
 
$ sudo passwd

prompt u to type new pass

Enter new password
Confirm

Password accepted succesfully

alperkins 12-16-2008 09:20 PM

Sweet!
 
YES!!! I've been able to set the Root password now on Ubuntu.

AndLinux is a bit strange as it doesn't carry out the command, but then I've found the NT console is going all the way down to the # rompt, so maybe that's another avenue for me to check out.

Long story short....THANK YOU...to those who left great ideas to follow. Hoping you're headed for a great holiday.


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