I just installed Ubuntu 13.10 on VMware. I am trying to login to root from my user account using su command but unable to login as Terminal is saying the following :
su: Authentication Failed
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It only takes a minute to sign up.
Sign up to join this communityI just installed Ubuntu 13.10 on VMware. I am trying to login to root from my user account using su command but unable to login as Terminal is saying the following :
su: Authentication Failed
By default, the Root account password is locked in Ubuntu. This means that you cannot login as Root directly or use the su command to become the Root user. However, since the Root account physically exists it is still possible to run programs with root-level privileges. This is where sudo comes in - it allows authorized users (normally "Administrative" users; for further information please refer to AddUsersHowto) to run certain programs as Root without having to know the root password.
So if you want root access then you can use sudo
with user, which you have specified during installation. you can run root command like sudo command
then it will ask for password.
Update :: To unlock root account
As @JosephR. suggested in comment, we can still become root or set root password using
sudo su
then we can run passwd
command to set password.
sudo su
and then set a password for root with passwd
.
Jan 12, 2014 at 20:28
Alt + Ctrl + mode + F1
Check if login as root is ok. If not do continue...
Alt + mode + F1
then go to path /usr/bin
cd /usr/bin
then do is
chmod u+s sudo su mount umount sg pkexec ping passwd newuidmap newgrp newgidmap ksu gpasswd fusermount expiry chsh chfn chage unix_chkpwd
then do is
chmod g+s wall write locate unix_chkpwd
then change passwd root
passwd
Alt + Ctrl + mode + F7
Or
Alt + mode + F7
Then try su
to login root
su
if not work do it again and change passwd user and root example my user is mizel
su - mizel
root only
su
If not working command me :)