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.
hi all,
i have installed ubuntu 12.10 on VMware 9.0.
1) how do i switch to root user ? I tried 'su' it prompts for the password i gave the pass which i assigned initially then also it is not giving me root privilege.
As above, its quirk of Ubuntu (sigh ..) that it disables the root acct and assigns full privileges via sudo to the first user acct created at install time.
Definitely not Std *nix procedure.
As above, its quirk of Ubuntu (sigh ..) that it disables the root acct and assigns full privileges via sudo to the first user acct created at install time.
Definitely not Std *nix procedure.
[pov]You know, it was a huge pet peeve of mine at first, until I realized that by doing so Ubuntu's probably done more for the "use a non-root account for daily work (on a desktop Linux)" principle than a decade of preaching within the community... [/pov]
I'm not convinced ... If someone is daft enough to run all day as root, they'll run all day as 'sudo su -', which is the same thing (effectively).
YMMV
Yeah, this is highly subjective, just sharing an opinion because for a long time I felt strongly opposite.
Quote:
Originally Posted by chrism01
If someone is daft enough to run all day as root, they'll run all day as 'sudo su -', which is the same thing (effectively).
I think the demographics that is protected by this method would not know where to enter "sudo su -" to begin with... Just like they don't know why they should bother creating additional accounts during/after setup when root seems to work just fine.
Last edited by ChooseLife; 02-01-2013 at 03:37 AM.
Its seems to be you want to unlock root user in ubuntu to do this follow below instructions.
In the terminal type
sudo passwd root
(now set the password to root whatever you want)
Now if you want graphical for just logout and select other user option to login by root
and if you want to use root user on terminal follow normal su- command.
Thanks everyone for valuable inputs. I did the task using "sudo".
Quote:
Originally Posted by chrism01
As above, its quirk of Ubuntu (sigh ..) that it disables the root acct and assigns full privileges via sudo to the first user acct created at install time.
Definitely not Std *nix procedure.
I didn't know this,thanks for sharing. I think its because security reasons, wherever ubuntu is used as server, even if it gets hacked the attacker will never be able to have root access.
No, they know its Ubuntu, so they try to crack the 1st user's passwd (all of them if needed...)
Using a real root is theoretically better, because they have to guess BOTH of the correct user's acct name & passwd, then also guess root's passwd (assuming remote root is disabled, which is normal).
With Ubuntu, they don't need to guess root passwd.
IOW, there's a reason *nix has been around since 1970 and only Ubuntu (a very recent distro of Linux) works that way.
(I believe Ubuntu derivatives may do the same).
I recommend to use 'sudo' in Ubuntu for one very simple reason: All official Ubuntu help pages and support forums assume you are using 'sudo'. If you use 'sudo' then you won't have any trouble following the documentation.
No, they know its Ubuntu, so they try to crack the 1st user's passwd (all of them if needed...)
Using a real root is theoretically better, because they have to guess BOTH of the correct user's acct name & passwd, then also guess root's passwd (assuming remote root is disabled, which is normal).
With Ubuntu, they don't need to guess root passwd.
IOW, there's a reason *nix has been around since 1970 and only Ubuntu (a very recent distro of Linux) works that way.
(I believe Ubuntu derivatives may do the same).
I totally agree with this, in 1st users case they have to crack only pass, but in case of root they have to crack both user name & pass. So, why people prefer ubuntu over other distros, be it a server or anything else, when many others are available ?
sudo has its use cases, especially on server environments, because you can give fine grained privileges to people to use applications as root without giving them total control over the machine. The way Ubuntu uses it may be fine for desktop users (in my opinion it is not, but this is a matter of taste, I would think), but is at least questionable on servers that allow password based authentication.
But anyways, on a properly secured server you use key-based athentication anyways, so regardless if an attacker manages to break into the system (which is unlikely unless he somehow gets access to your key) he still has to find out the password needed for root access, regardless if su or sudo is needed.
Quote:
So, why people prefer ubuntu over other distros, be it a server or anything else, when many others are available ?
On desktop systems it is clearly a matter of taste if you prefer a distro that makes it easy for the user with the downside of having impacts on security or if you prefer a distro with more control, with the downside that some people are annoyed that they have to switch to a different user for system maintenance. On a system that is aimed at being purely used with GUI tools (which nowadays is not that hard) the only downside of using su instead of sudo is that you have to keep in mind two passwords.
Why people use Ubuntu in server environments, honestly, I have no clue. I would always prefer a distro that aims to release a new version when it is done, not when a fixed release date is reached. I would think that the high marketshare on desktop systems leads to it being used on servers also.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.