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 |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
 |
12-12-2007, 09:01 PM
|
#1
|
Member
Registered: Jun 2001
Location: 28N,82W
Distribution: XP,Ubuntu 9
Posts: 473
Rep:
|
How to reset root password in Ubuntu?
I just got done with installing Ubuntu in VMWare. Installer asked me for a username and password which I can now use to log in and out. Installer never asked me for root password. So, what is the root password, and how can I change it?
TIA
|
|
|
12-12-2007, 09:12 PM
|
#2
|
LQ Guru
Registered: Apr 2003
Location: ~
Distribution: Ubuntu, FreeBSD, Solaris, DSL
Posts: 5,337
Rep:
|
There is no root password in Ubuntu. Actually, there is not root account at all in Ubuntu. Use the "sudo" command to do admin tasks, for example:
Code:
sudo apt-get update
You will be asked for the password. The password is the same you used to create your user when installing Ubuntu.
You can add a root account to Ubuntu if you dislike the sudo method (which I personally think is great). Just take a look at the Ubuntu guide (which is also worthy bookmarking) about how to enable the root account:
http://ubuntuguide.org/wiki/Ubuntu:Gutsy
Last edited by Mega Man X; 12-13-2007 at 02:41 AM.
|
|
|
12-13-2007, 01:59 AM
|
#3
|
LQ Newbie
Registered: Nov 2007
Location: India
Distribution: Ubuntu 7.10 Gusty Gibbon
Posts: 15
Rep:
|
use sudo..
sudo <command>
dats it ..
njoy 
|
|
|
12-13-2007, 02:45 AM
|
#4
|
LQ Guru
Registered: Apr 2003
Location: ~
Distribution: Ubuntu, FreeBSD, Solaris, DSL
Posts: 5,337
Rep:
|
Quote:
Originally Posted by nirjharoberoi
use sudo..
sudo <command>
dats it ..
njoy 
|
 Maybe I wasn't clear enough in my previous post was I? 
|
|
|
12-13-2007, 03:55 AM
|
#5
|
LQ Guru
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298
Rep:
|
Quote:
Actually, there is not root account at all in Ubuntu.
|
The root account is there but its locked so no logins as root are allowed by default. 
|
|
|
12-13-2007, 04:20 AM
|
#6
|
LQ Guru
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678
Rep: 
|
sudo passwd?
|
|
|
12-13-2007, 05:21 AM
|
#7
|
LQ Guru
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131
Rep: 
|
Yup, root account is there, but it's password field in shadow contains exclamation mark which makes the account unusable (! is not accepted, so it can be used to freeze the password, and therefore the account). To start using root account, simply set a password for it with
as suggested by billymayday.
Note that configuring sudo well and using it is more secure than logging in as root all the time. Having root account "frozen" is a step towards better security. Consider learning how to configure and use sudo, it's really not that bad - vice versa. Also your accidental "I shredded my root directory recursively!" situations might get more rare, because typing 'sudo' in front of a command is more difficult to do by accident than just launch a command and not remember that you were actually logged in as root and did a small typing error (maybe you wanted to shred the two files inside the current working directory, but forgot to put a dot in ./ and therefore shredded your root directory - this wouldn't happen, of course, if you didn't have privileges to do that - if you didn't type 'sudo' in front of the command).
Security and secure system is one thing, a secure user and secure habits are another.
|
|
|
12-13-2007, 03:04 PM
|
#8
|
LQ Guru
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678
Rep: 
|
I think the OP specifically needs the root password for VMware installation - nothing to do with general maintenance/running.
|
|
|
All times are GMT -5. The time now is 06:53 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|