Linux - NewbieThis 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!
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.
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
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?
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:
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:
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
sudo passwd root
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.