LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Getting problem in creating root user in ubantu. (https://www.linuxquestions.org/questions/linux-newbie-8/getting-problem-in-creating-root-user-in-ubantu-728691/)

fahadaziz 05-26-2009 04:37 PM

Getting problem in creating root user in ubantu.
 
Hello every one...i am installing ubantu OS on my laptop and facing problem when i have to create root user to administrat the machine but whenever I try to create the root user it gives me the error that root is reserved by system and hopelessly i have to create custom user to login....so how could i access the system as a root user in ubantu.....

Thanks and regards,

Fahad Bin Aziz

colucix 05-26-2009 04:45 PM

You cannot create the root user, because it is already there. The issue is that you cannot login as root in Ubuntu. To perform administrative tasks you have to use sudo and give your user password when prompted. For example, if you want to install a package using apt-get from command line, do
Code:

sudo apt-get install package_name
If you want to switch to root, without typing your password every time, you can simply do
Code:

sudo -i
To do this your user must be listed in the /etc/sudoers file.

marvinudy 05-26-2009 04:49 PM

fahadaziz,

I'll assume you did a 'standard' Ubuntu install and established a user account. In a console, enter the command "sudo passwd root" without the ""s. You will be asked for the 'current' user's password and then entry for the 'new' root password.

I would recommend you spend some time on the Ubuntu forums/wiki as a good source of basic help and information.

best regards,

marvinudy


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