Re: super user password?



Hi, Hadi!

On 03/08/2010 08:54, hadi motamedi wrote:
Dear All
I have installed Ubuntu on my machine but at the Terminal I cannot
login as super user by issuing 'su - root' . During installation it
didn't ask me for super user password so how can I recover it ?
Thank you

There is no super user password, because you don't need super users on
Ubuntu.

You CAN set one if you WANT... But it's not needed.

Instead of running "su -" then running a command, you should "sudo
command" and it will prompt you for your OWN password (provided your
user has administrator rights).

You can, of course, "sudo passwd root" and that will set a password for
root.

But remember that anybody who knows the root password can su to root and
do commands that aren't really audited properly (i.e. you don't know who
really IS running them if you have multiple people with the root
password). When you "sudo command" at least in the audit logs, you know
who did the command. Of course, if the command is "sudo rm -rf /" there
might not be any audit logs left if you set up your logs incorrectly. :)

Seriously, you have "sudo" for shell commands, and "gksudo" for GUI
commands. That should be enough so that you don't need to "su -". You
can, at worse, do "sudo bash" which will launch a shell, equivalent to
doing "sudo -", more or less.

Gilles.

--
ubuntu-users mailing list
ubuntu-users@xxxxxxxxxxxxxxxx
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users



Relevant Pages

  • Re: PS Re: VVDQ : Alpine on Ubuntu??
    ... I also suggest that you not try to run GUI tools from a root prompt. ... sudo Vs. su has no relevance to my warning. ... This is *not* peculiar to Ubuntu or to sudo - it has to do with things ... lot less trouble to burn a CD of the latest version, and upgrade from ...
    (Ubuntu)
  • Re: debian and ubuntu - answer from user not pretending to be guru
    ... convenient, for most things, and I do not like the sudo that Ubuntu uses; ... prefer su - root. ... I'm not looking to criticize your choice, but the setting on Ubuntu to lock ... If you want to use a root password on Ubuntu, ...
    (Debian-User)
  • Re: debian and ubuntu - answer from user not pretending to be guru
    ... convenient, for most things, and I do not like the sudo that Ubuntu uses; ... prefer su - root. ... I'm not looking to criticize your choice, but the setting on Ubuntu to lock ... If you want to use a root password on Ubuntu, ...
    (Debian-User)
  • Re: New Installation - Newbie
    ... Ubuntu, for "security reasons" comes with no password on the root account. ... You should use 'sudo' for admin chores, ... I have used sudo for admin stuff on Unix ...
    (alt.linux)
  • Re: UbuntuCE and root login question
    ... I loaded Ubuntu on my win2k system yesterday and all seemed to go very well. ... The installer did not ask for a ... root password, so I have no password to enter to login as root. ... use the "sudo" command as follows: ...
    (alt.os.linux)