Find the answer to your Linux question:
Results 1 to 6 of 6
Is this a new protocol? I enter su -, then get the password prompt, and it returns authentication failure. What's new here?...
  1. #1
    Linux User
    Join Date
    Apr 2007
    Posts
    289

    su - then password, returns authentication failure

    Is this a new protocol?

    I enter su -, then get the password prompt, and it returns authentication failure.

    What's new here?

  2. #2
    Linux Newbie
    Join Date
    Nov 2007
    Location
    Planet Earth
    Posts
    152
    Is it a fresh installation?

    Many distribution disable the root user by default, so you need to do:

    sudo passwd

    to write a password for the root user.

    Anyway, it's a good idea to use 'sudo' instead of root user directly.

    Hugo
    EOF

  3. #3
    Linux User
    Join Date
    Apr 2007
    Posts
    289
    Quote Originally Posted by hugortega View Post
    Is it a fresh installation?

    Many distribution disable the root user by default, so you need to do:

    sudo passwd

    to write a password for the root user.

    Anyway, it's a good idea to use 'sudo' instead of root user directly.

    Hugo
    Thanks!

    I've done it this way for years.
    Code:
    chucknb@chucknb-desktop:~$ su -
    Password: 
    su: Authentication failure
    chucknb@chucknb-desktop:~$
    Something is new...

  4. #4
    Linux Guru reed9's Avatar
    Join Date
    Feb 2009
    Location
    Boston, MA
    Posts
    4,651
    Ubuntu disables the root password by default and uses sudo exclusively. The first user created on the system automatically has elevated privileges.

    As for whether sudo is somehow more secure than su, there is certainly debate about that.

    As mentioned, you are free to set a root password in Ubuntu and use su as well.

    Instead of prefacing every command with sudo, you can also log in as root with sudo su

  5. #5
    Linux User
    Join Date
    Apr 2007
    Posts
    289
    I went exec sudo -s

    Code:
    chucknb@chucknb-desktop:~$ exec sudo -s
    [sudo] password for chucknb: 
    root@chucknb-desktop:~#
    This worked.

    What happened to
    Code:
    su -
    ???

  6. #6
    Linux Guru reed9's Avatar
    Join Date
    Feb 2009
    Location
    Boston, MA
    Posts
    4,651
    su - should work fine - again, you just have to set a root password in Ubuntu to use it.

Posting Permissions

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