Computer Hope

Software => BSD, Linux, and Unix => Topic started by: #groff -Tascii -man yakub on June 01, 2008, 08:56:26 AM

Title: root password in ubuntu
Post by: #groff -Tascii -man yakub 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?
Title: Re: root password in ubuntu
Post by: KenJackson 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.
Title: Re: root password in ubuntu
Post by: KenJackson 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
Title: Re: root password in ubuntu
Post by: #groff -Tascii -man yakub on June 01, 2008, 08:54:01 PM
thanks everyone..........
Title: Re: root password in ubuntu
Post by: JayB 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.
Title: Re: root password in ubuntu
Post by: mkhsgn on August 17, 2008, 04:41:51 PM
$ sudo -H -s

HTH :)
Title: Re: root password in ubuntu
Post by: trojatra 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  ;)