need to have ubuntu 12.10 root privilege
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. |
try
sudo su - su asks you for root's password, sudo asks for the user's password |
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. |
Quote:
|
*cough*
|
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 |
Quote:
Quote:
|
Hey,
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. That's it !!! |
Thanks everyone for valuable inputs. I did the task using "sudo".
Quote:
cheers, nm |
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.
|
Quote:
|
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:
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. |
All times are GMT -5. The time now is 06:11 PM. |