Re: don't know root password



On Sun, 16 Sep 2007 11:07:13 -0400, Allan Adler wrote:

In the thread on X programming, I mentioned that I have a laptop running
Ubuntu 4.1.2-0, with kernel 2.6.20-15-generic. Someone gave me the laptop.
I have an account on it, so I can log in, but I don't know the root password
and the person who gave it to me doesn't remember. He suggested that I do the
following when booting (it uses GRUB):
(1) Select Linux version and type e for edit
(2) Select line that starts kernel and type e to edit the line
(3) Go to end of line and type "single" as a separate word (press spacebar
and then type single). Press <RET> to exit edit mode.
(4) Back to GRUB screen. Type b to boot into single user mode.
(5) When boot completes, get shell script. You are now root. Type
passwd to change root password.

I tried this, but it seems to boot so quickly that I didn't see any of the
events I was supposed to respond to. Is there any way to slow it down
so that I can see what I am doing?

Just for starters, I didn't see a choice of Linux versions. I did try
to type e and it ignored it. I'm not used to this and I don't know what I
am doing.

I also don't like the fact that this install didn't include emacs. One way
to solve the problem with the root password is to simply scrap the present
Ubuntu installation and install one of the distributions I have sitting on
CDs, which range from RH 6.2 to Fedora III at the moment. But I'd like to
try to use it as it is first.

If I am in a terminal window and type halt, I get a message saying that
I have to be root. But if I click on something I get offered the option
of shutting down the machine and I don't have to be root to click it and
shut it down that way.

Ubuntu, by default, does not have a password set up for the root account.
This is a security issue. You can issue commands with the root privilege
by typing "sudo whatevercommand" in a terminal window. The theory is that
the extra step will cause you to think twice, so less chance of damaging
your system and making it more difficult to penetrate since there is less
chance of you running as root.

If you still want to set a password for root, simply do "sudo passwd".

.



Relevant Pages

  • 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: Help with installation
    ... > su exists in ubuntu, but is not enabled by default. ... you can not use the su account. ... > activated by setting a root password. ... and is used just to do that - to switch current UID. ...
    (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: Card Reader
    ... >>>root login. ... >> Okay, now I see what Ubuntu has done, and it makes what you ... >> on Ubuntu nobody knows the name of the superuser account. ...
    (rec.photo.digital)
  • Re: Renaming "root" to "homer"?
    ... With all those scripts trying to connect to SSHd as "root", ... wondering if it'd be OK to rename this account to eg. "homer", ... it is to create a second admin account named "homer" or whatever. ... day and have no chance of guessing the root password. ...
    (freebsd-questions)