Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: root password in ubuntu  (Read 33266 times)

0 Members and 1 Guest are viewing this topic.

#groff -Tascii -man yakub

    Topic Starter


    Rookie

    root password in ubuntu
    « on: June 01, 2008, 08:56:26 AM »
    Hi this is yakub
      i have a problem while logging as root
      i typed "su" in the terminal it asked me for a password i typed my password but it is giving as "Authentication Failed  sorry."
    but the root password is correct only
    why i am getting this problem how can i overcome this problem?

    KenJackson



      Beginner
    • Thanked: 1
      • Yes
      • Jackson I/O
    • Experience: Experienced
    • OS: Linux variant
    Re: root password in ubuntu
    « Reply #1 on: June 01, 2008, 12:51:49 PM »
    By default, Ubuntu disables the root account.  If you really, really think you need to log in as root, you could probably use this command to enter a password for root:
    sudo passwd root

    But the theory that Ubuntu has embraced is that you never need to log in as root.  Every administrative thing you need to do can be done with sudo.  After using Ubuntu, I have found that I almost always use sudo instead of su on my Mandriva and PCLinuxOS systems now also.

    KenJackson



      Beginner
    • Thanked: 1
      • Yes
      • Jackson I/O
    • Experience: Experienced
    • OS: Linux variant
    Re: root password in ubuntu
    « Reply #2 on: June 01, 2008, 12:56:09 PM »
    After looking at man usermod, I think you may need to also execute this command to enable the root account:

    sudo usermod -U root

    #groff -Tascii -man yakub

      Topic Starter


      Rookie

      Re: root password in ubuntu
      « Reply #3 on: June 01, 2008, 08:54:01 PM »
      thanks everyone..........

      JayB

      • Guest
      Re: root password in ubuntu
      « Reply #4 on: August 04, 2008, 08:03:58 AM »
      A good guide to sort the Ubuntu root pass issue

      http://www.fixya.com/support/t879022-ubuntu_change_root_password

      I'm quite new to ubuntu, and this was easy for me.
      JB.

      mkhsgn

      • Guest
      Re: root password in ubuntu
      « Reply #5 on: August 17, 2008, 04:41:51 PM »
      $ sudo -H -s

      HTH :)

      trojatra



        Newbie

        Re: root password in ubuntu
        « Reply #6 on: August 30, 2008, 09:21:59 PM »
        To the OP: It is much safer to use the built-in sudo command, rather than suing to the root account. sudo will give you near all the same powers as root, and will make it much safer and harder for an inexperienced user to ruin their system  ;)