Find the answer to your Linux question:
Results 1 to 8 of 8
I installed Ubuntu last night before I headed to bed and when I woke up this morning I discovered a problem. When I am sitting in the terminal and I ...
  1. #1
    Linux Newbie
    Join Date
    Aug 2003
    Location
    Port Angeles, WA
    Posts
    119

    Ubuntu Problem

    I installed Ubuntu last night before I headed to bed and when I woke up this morning I discovered a problem. When I am sitting in the terminal and I type su it asks for the password like it should but when I enter the password, which is correct, it says authentication failure.

    The weird part is when I am asked for a password anywhere else after wanting to change a system setting or something like that it takes the password. Why wont it accept the password after typing su but it will take it everywhere else?

  2. #2
    oz
    oz is offline
    forum.guy
    Join Date
    May 2004
    Location
    arch linux
    Posts
    18,086
    Try sudo instead. I think ubuntu is setup to use it by default.

  3. #3
    Just Joined!
    Join Date
    Oct 2004
    Location
    Midwest
    Posts
    43
    That is true. Ubuntu is set up the same as macs. there is a systemwide password, but you cannot log in as root. They did this to make a more user-friendly/user-safe distro. If it really bugs you not being able to start a root session (sudo caches the password, so after the first command you type, you can sudo anything else just by prefacing he command with sudo) you can enable the root password, and thus the su command by typing-

    sudo passwd root

    and then entering your desired root password

  4. #4
    Linux User St. Joe's Avatar
    Join Date
    Jun 2005
    Location
    USA
    Posts
    271

    Re: Ubuntu Problem

    Quote Originally Posted by Hotwheelz
    When I am sitting in the terminal and I type su it asks for the password like it should but when I enter the password, which is correct, it says authentication failure.
    Basically, you just replace 'su' with 'sudo' in the command.
    Then for the password you enter your user pass.

    This gives you admin privileges.
    It may be that your sole purpose in life is simply to serve as a warning to others.

  5. #5
    Just Joined!
    Join Date
    Aug 2005
    Location
    Pasadena, CA
    Posts
    14
    I join the chorus of those that do not like Ubuntu's scheme. there should be user accounts and the root account. It should take effort to become root.

    What is really annoying is to start something that needs root privileges, then enter the root password, and have it rejected. Ah, yes, it wants my USER passwd in order to let me do a "root" thing. Not good.....

  6. #6
    Linux User St. Joe's Avatar
    Join Date
    Jun 2005
    Location
    USA
    Posts
    271
    Quote Originally Posted by pixellany
    I join the chorus of those that do not like Ubuntu's scheme. there should be user accounts and the root account.
    There is a root account. It simply needs to be assigned a passwd.
    As mentioned:

    # sudo passwd root

    As for preference that is another matter.
    I like sudo and set it up on my Gentoo box.
    It may be that your sole purpose in life is simply to serve as a warning to others.

  7. #7
    Linux Enthusiast aysiu's Avatar
    Join Date
    Jul 2005
    Posts
    633
    Quote Originally Posted by pixellany
    What is really annoying is to start something that needs root privileges, then enter the root password, and have it rejected. Ah, yes, it wants my USER passwd in order to let me do a "root" thing. Not good.....
    But you don't have a "root" password in Ubuntu unless you enable it. There's only one password, which is fine (and it's exactly the way OS X does it, too). Why should one user have to remember two passwords? And in a multi-user environment, not every user is in the sudoer's file.

  8. #8
    Just Joined!
    Join Date
    Jul 2005
    Location
    :noitacoL
    Posts
    51
    type

    Code:
    sudo passwd <enter>
    then enter your root password to enable the root account. I wouldn't exactly call that "effort".

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •