Ubuntu 16.04 Root User not found
-
I have installed the VMware workstation 10.Then Ubuntu 16.04 ISO file is mapped in it.The OS automatically installed in the vmware workstation.
I tried to log in to the root user but not able to do.
I have created the user in it but the root user is not able to login.How to go to root user ?? -
This guide here should help you to login as root.
-
@DustinB3403 When i have the guide given i have got this error
-
@Lakshmana just going off of the screenshot I would guess there is a formatting error in
/etc/sudoers
run
sudo cat /etc/sudoers
and output what is there.
-
@DustinB3403 Same error mentioned in the screenshot
-
Please follow these steps and screenshot what is there.
cd /etc
-
@DustinB3403 cd /etc no other things mentioned as output
-
@Lakshmana said in Ubuntu 16.04 Root User not found:
@DustinB3403 cd /etc no other things mentioned as output
Sorry I meant to add
ls -a
-
Ubuntu does not use a root user by default.
-
@scottalanmiller said in Ubuntu 16.04 Root User not found:
Ubuntu does not use a root user by default.
Scott the trouble (as I understand it) is that even the user he created doesn't have root access.
-
Appears to be a corrupt sudoers file, take a look at the following link.
-
Does this work...
sudo -i su
-
@tiagom I used 'pkexec bash' command where the root login done now
-
@Lakshmana Now I am able to login as Root user but unable to change the paasword.
I have provided the ssh port as 22 but the vm machine is not able to take the putty session in the windows 10 machine.The ip in the ubuntu is able to ping but network "Connection Refused" error is coming -
Is it installed?
-
@tiagom ssh server is conifugured in it.port 22 is taken from #
-
On Ubuntu run.... netstat -tulpn to see if port 22 is listening.
-
@scottalanmiller No 22 port is not listening
-
Might need to boot into single user mode and fix /etc/sudoers from there.