I am not able to change into a root user, problem is when I give the command root
, it asks for password, but the keyboard doesn't work after that though the enter key. After three strikes says "three incorrect attempts".
This is what it shows
avinish@ubuntu:~$ /etc/sudoers
bash: /etc/sudoers: Permission denied
Please help!
Best Answer
Type in
sudo su root
in your terminal window. It will prompt you for your login password. That is, type in youur regular password. Once you have done that you will seeroot@ubuntu:/home/avinish#
instead ofavinish@ubuntu:~
Now type
passwd
and hit the enter key.It will prompt you to enter new unix password. Give in watever password you want for the root user.
Note: you wont be able to see anything while entering your password.