[SOLVED] Defining a root on a just installed ubunt netbook edition
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!
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.
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.
Defining a root on a just installed ubunt netbook edition
Hi everybody!
I just installed an ubuntu netbook edition on my notebook. In the installation process I defined a user with a password. I can use that password to access many system tools, like the synaptic package manager, adding users and so on..
However, when I wanted to do some staff in a terminal as a superuser (using the su command), and I enter my password (There is only a single user and a single password so far) I get authentification failure.
I went to System-->Administration-->uers and groups . I changed the my account type to an "Administrator" (for that I used again my password). hoping that I can use the su command but still it did not work..
I feel that the superuser needs to be set or defined. Since I have not done that then whatever pass word I enter after the command su I will always get "authentification failure"
How can I define the superuser and tell the system that I am the superuser of this computer?
There is nothing wrong with enabling root password in Ubuntu however keep in mind that all of the official documentation and the support forums assume that you're using 'sudo' instead. So if you are following Ubuntu tutorials you'll need to adjust the commands accordingly.
Thanks Snowpine
I found the link very instructive
I initially activated the root account and then after reading through the link and understanding that I can do almost anything with sudo command I disabled again
While it is generally frowned upon, a kludge for maintaining a login as root at the console is to use "sudo su" to take on the root identity. You will then be provided with a # prompt in place of the $ prompt. While it can save some typing, just be darn sure to exit from the root login when you finish your tasks.
While it is generally frowned upon, a kludge for maintaining a login as root at the console is to use "sudo su" to take on the root identity. You will then be provided with a # prompt in place of the $ prompt. While it can save some typing, just be darn sure to exit from the root login when you finish your tasks.
Please read the link in post #4. 'sudo su' is deprecated in Ubuntu. To quote:
Quote:
None of the methods below are suggested or supported by the designers of Ubuntu.
Please do not suggest this to others unless you personally are available 24/7 to support the user if they have issues as a result of running a shell as root.
While it is generally frowned upon, a kludge for maintaining a login as root at the console is to use "sudo su" to take on the root identity. You will then be provided with a # prompt in place of the $ prompt. While it can save some typing, just be darn sure to exit from the root login when you finish your tasks.
Just so you know, 'sudo bash' is very similar to 'sudo su' or 'sudo -s' or 'sudo -i': you essentially are running the shell as root. However, this won't work for X.
If you want to enable the root account and run X as root:
Code:
sudo passwd
Then just enter your new root password and you're all set!
BE WARNED, though: When you run anything as root you run the risk of causing damage to ALL your files, not just those within your home directory. And running X as root is no different: if you run Nautilus as root, for instance, and accidentally right-click '/' and click "Delete", you might as well kiss your system goodbye.
There is no reason to log into an X session (GUI) as root, ever.
If you would like to run a single application as root in Ubuntu, you may do so with 'gksudo' (or 'gksu' for short works too). For example to launch the file manager as root:
There is no reason to log into an X session (GUI) as root, ever.
If you would like to run a single application as root in Ubuntu, you may do so with 'gksudo' (or 'gksu' for short works too). For example to launch the file manager as root:
Code:
gksudo nautilus
Yes - but then you're prompted with a UAC-like window.
Yes - but then you're prompted with a UAC-like window.
Which is bad why?
Anyway, read the link in post #4. The OP did and then marked the thread Solved, so maybe it will answer your questions too.
Quote:
Originally Posted by Rambo_Tribble
Don't forget the Kubuntu users and kdesudo.
I did not "forget" kdesu; it is in fact specifically mentioned in the link in post #4. The purpose of linking to documentation is so we don't have to mention every last detail of a complicated topic every time we make a forum post.
If you specifically mention gksudo it is only politic to, in the same breath, mention kdesudo. Manners, you see. But, then I guess that might be too much to ask.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.