Ubuntu Password Trouble

  • 6 Replies
  • 4784 Views

0 Members and 1 Guest are viewing this topic.

*

Offline Titanscape

  • Hero Member
  • *****
  • 785
    • View Profile
Ubuntu Password Trouble
« on: 25/08/2008 21:10:19 »
Hi, I have installed Ubuntu on my hard drive, and I am looking to write in a terminal, Compiz-Check but even though I know the password, and tried a lot, it would not accept my password after "su".

What can I do?
Titanscape

*

Offline LeeE

  • Neilep Level Member
  • ******
  • 3382
    • View Profile
    • Spatial
Ubuntu Password Trouble
« Reply #1 on: 26/08/2008 19:34:52 »
Was it actually saying that the password you entered was incorrect?  If so, then you're not supplying the correct password.  If it does accept the password, but then fails to run the prog, can you run other commands as root? i.e. create a file in /root/ that only root has permissions to and then try to cat it from an ordinary user after su'ing.
...And its claws are as big as cups, and for some reason it's got a tremendous fear of stamps! And Mrs Doyle was telling me it's got magnets on its tail, so if you're made out of metal it can attach itself to you! And instead of a mouth it's got four arses!

*

Offline Titanscape

  • Hero Member
  • *****
  • 785
    • View Profile
Ubuntu Password Trouble
« Reply #2 on: 28/08/2008 09:29:55 »
Well it is a fresh install, there is only one password. I miss typed it at one point and saw it spelled out rightly, otherwise it is not shown. That is, I typed it in the su space, because it became a habit, I tried many times.

I will test the keyboard in a word processor.
Titanscape

*

Offline LeeE

  • Neilep Level Member
  • ******
  • 3382
    • View Profile
    • Spatial
Ubuntu Password Trouble
« Reply #3 on: 29/08/2008 00:01:25 »
Sorry Titan, but you actually failed to answer any of my questions.

There should not just be one password - you need one for 'root' and another for a normal user (they should not be the same).  You obviously know the pw for your normal user, otherwise you wouldn't have been able to log in and wouldn't need to 'su' to run root commands, but then you need to know the root pw to get past 'su'.
...And its claws are as big as cups, and for some reason it's got a tremendous fear of stamps! And Mrs Doyle was telling me it's got magnets on its tail, so if you're made out of metal it can attach itself to you! And instead of a mouth it's got four arses!

*

Offline nsbuk001

  • First timers
  • *
  • 4
    • View Profile
Ubuntu Password Trouble
« Reply #4 on: 06/05/2010 14:36:54 »
Actually, with Ubuntu, you are rarely asked for a root password during installation.  Something that caught me out when I first started using it, after using Debian for years, which does.

Rather than trying to type su - in Ubuntu try

sudo -s -H

You will then be asked for a password and entering your own will normally suffice.  You will now be running with root priveleges.

Of course you should get into the habit of typing

sudo somecommand blah

when you need to run a command with root privs, and not using root at all when necessary.

That is the idea behind this arrangement.

Regards
Neil

*

Offline djdave

  • Jr. Member
  • **
  • 13
    • View Profile
Ubuntu Password Trouble
« Reply #5 on: 26/05/2010 11:12:28 »
Ubuntu has fixed this issue in Ubuntu 10.04 onwards.