LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   changing user to root user in obuntu 10.04lts (https://www.linuxquestions.org/questions/linux-newbie-8/changing-user-to-root-user-in-obuntu-10-04lts-888605/)

kato.jacob 06-27-2011 12:23 PM

changing user to root user in obuntu 10.04lts
 
how to change user to root user in obuntu 10.04

Tinkster 06-27-2011 12:36 PM

Hi, welcome to LQ,

sudo -i


Cheers,
Tink

kato.jacob 06-27-2011 12:57 PM

changing user to root user
 
i have user called keith . so my question how to add this user to be a root user

Karl Godt 06-27-2011 01:34 PM

I once tried to change that on CrunchBang 8 also Ubuntu based with setting the minimum login number to 0
and changed also other entries , but in the end I had dialog(whiptail) running saying some obscure permission things , which I could bypass by another tty ,
but somehow I did not boot that installation a long time and when I tried it again , nothing worked anymore as expected .

It is possible to get a root screen on another tty from the menu @Xubuntu10.04 but I can not remember exactly anymore .

In fact I had a problem running firefox as user , because firefox had no write permissions in my username HOME directory . Took me quite a while to figure that out .

snowday 06-27-2011 01:40 PM

Quote:

Originally Posted by kato.jacob (Post 4397133)
i have user called keith . so my question how to add this user to be a root user

Add the user keith to the "admin" group; then Keith can use "sudo" to perform administrative tasks:

https://help.ubuntu.com/community/RootSudo#Allowing other users to run sudo
https://help.ubuntu.com/community/RootSudo

digsecurity 06-28-2011 04:46 AM

Quote:

Originally Posted by kato.jacob (Post 4397133)
i have user called keith . so my question how to add this user to be a root user

Execute the following command from root:
Code:

echo 'username ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
Now you can use "sudo" to execute any administrative command.

Nauntilus 06-28-2011 07:28 AM

You can also add the account to the sudoers file in the /etc directory. At least I think that's where it is.


All times are GMT -5. The time now is 02:43 PM.