LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Ubuntu (https://www.linuxquestions.org/questions/ubuntu-63/)
-   -   Log on as Administrator (https://www.linuxquestions.org/questions/ubuntu-63/log-on-as-administrator-742560/)

Ian D 07-24-2009 03:39 PM

Log on as Administrator
 
I have just installed Ubuntu 9.04 on a PC. As part of the process, I remember being asked to create a user (I used ian) and a password (I know the password). However, I do not remember being asked a password for the root user.

Does it take a default value? What password should I use to log in as the super user?

Ian

thinknix 07-24-2009 03:43 PM

You'll want to use sudo to run commands as root on Ubuntu. Example:

Code:

sudo apt-get update
The password you use will be the one for your own user account. Ubuntu does not define a root password. You can define one if you want, however:

Code:

sudo su
passwd


Ian D 07-24-2009 03:55 PM

Thanks slugmax

I want to add another user. I go to System|Administration|User Settings and there I can see a "Add User" button - but it is greyed out.

I expected to log in as root to be able to do such things - but evidently not. How do I add a new user?

thinknix 07-24-2009 03:58 PM

No problem. Just click the 'Unlock' button (next to the close button) and enter your user password.

repo 07-24-2009 03:59 PM

sudo useradd username
man useradd

Ian D 07-24-2009 04:32 PM

Thanks again slugmax.

I'm a happy man (for now)

Ian


All times are GMT -5. The time now is 08:52 AM.