Results 1 to 10 of 10

Thread: "su" command doesn't work?

  1. #1
    Join Date
    Sep 2012
    Beans
    3

    Question "su" command doesn't work?

    I know this might sound like a really nooby question, but when i used linux mint, i could simply type "su" in the command line, and i would be able to do stuff as superuser (obviously), but in ubuntu 13.04, i just get "Authentication faliure"! why is that?

    - Olavbs

  2. #2
    Join Date
    Feb 2007
    Beans
    23,839
    Distro
    Ubuntu 16.04 Xenial Xerus

    Re: "su" command doesn't work?

    Hi and maybe this can help RootSudo

  3. #3
    Join Date
    Apr 2011
    Location
    3rd Rock from the Sun
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: "su" command doesn't work?

    It won't work in Ubuntu. Instead you must use 'sudo -i' but just 'sudo' is good enough. Read the info on the link which 'overdrank' shared.
    "Evolution is Nature's way of issuing upgrades."


  4. #4
    Join Date
    Sep 2012
    Beans
    3

    Re: "su" command doesn't work?

    Thanks a lot both of you!

  5. #5
    Join Date
    Sep 2011
    Beans
    370

    Re: "su" command doesn't work?

    To use "su" do:
    Code:
    sudo passwd root
    then type a password and confirm. Now you can do "su".

  6. #6
    Join Date
    Jul 2007
    Location
    Magic City of the Plains
    Beans
    Hidden!
    Distro
    Xubuntu 16.04 Xenial Xerus

    Re: "su" command doesn't work?

    Quote Originally Posted by leunam12 View Post
    To use "su" do:
    Code:
    sudo passwd root
    then type a password and confirm. Now you can do "su".
    But we don't recommend that to new users because enabling the root account subverts Ubuntu's security model, in addition to being unnecessary. Prepending "sudo" to a command or using sudo -i is the preferred way.

  7. #7
    Join Date
    Sep 2011
    Beans
    370

    Re: "su" command doesn't work?

    I agree with you, not for the noob. But very useful if you happen to break sudo or mess up the sudoers file (it happens). But I agree, the preferred method is the good old sudo.

  8. #8
    Join Date
    May 2009
    Location
    Fareham, UK
    Beans
    Hidden!
    Distro
    Xubuntu 14.04 Trusty Tahr

    Re: "su" command doesn't work?

    Quote Originally Posted by leunam12 View Post
    I agree with you, not for the noob. But very useful if you happen to break sudo or mess up the sudoers file (it happens). But I agree, the preferred method is the good old sudo.
    If you break the sudoers file you cant exactly use sudo to repair it can you?

    I just use "sudo su" to obtain a root terminal
    Catch me on Freenode - imark

  9. #9
    Join Date
    Jul 2007
    Location
    Magic City of the Plains
    Beans
    Hidden!
    Distro
    Xubuntu 16.04 Xenial Xerus

    Re: "su" command doesn't work?

    Quote Originally Posted by leunam12 View Post
    I agree with you, not for the noob. But very useful if you happen to break sudo or mess up the sudoers file (it happens). But I agree, the preferred method is the good old sudo.
    If you edit /etc/sudoers with
    Code:
    sudo visudo
    it'll give you some protection against breaking your sudoers file.

  10. #10
    Join Date
    Jun 2010
    Location
    London, England
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: "su" command doesn't work?

    For those who do not know, gksu is not installed in 13.04 by default. We have to install it as it is depreciated. Something called pkexec is going to replace it.

    Regards.
    It is a machine. It is more stupid than we are. It will not stop us from doing stupid things.
    Ubuntu user #33,200. Linux user #530,530


Tags for this Thread

Bookmarks

Posting Permissions

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