How to Reset Root Password in Ubuntu Desktop 15.10 (Wily Werewolf)
Hello Everyone,
In this tutorial,
Let Us Reset Root Password or Forget
To Fix Broken Sudo.......
Errors that you are getting..........
Error 1:- you may notice an error saying you're not in the sudoers file and the incident is going to be reported.
Error 2:- sorry user usuario is not allowed to execute '/usr/bin/passwd root' as root on.
Error 3:- Give root password for maintenance (or type Control-D to continue)
SOLVING ERROR 3 BY BELOW STEP FOLLOW
Step1 :- fsck (First You need to Check file checking error, if doesn't solve follow below step)
Step2 :- mount -t proc proc /proc
Step3 :- mount -o remount, rw / or mount -ro remount,rw /
Step4 :- passwd vi /etc/default/locale
Step5 :- sync reboot
Step6 :- reboot
or option(above doesn't solve follow below step)
Step7 :- mount | grep ' on / '
That command produces something like /dev/sda1 on / type ext4 (rw,errors=remount-ro,commit=0) as the output
Step8 :- sudo mount /dev/sda1 /mnt
Replace /dev/sda1 with the device name of the partition containing your Ubuntu system's root filesystem, if different.
Step9 :- sudo mount /dev/sda1 /mnt
Step10 :- passwd root
Step11 :- exit
Step12 :- sudo umount /mnt
Step13 :- exit
Step14 :- reboot
Cause and symptoms :-
the /etc/sudoers file has been altered to no longer allow users in the admin group to escalate privilege
the permissions on the /etc/sudoers file are changed to something other than 0440
a user who should not have been has been taken out of the admin group.
By above error and cause can be done by following steps.....
To Reset Root Passwd
step1 :- Restart your server or desktop
step2 :- press continue shift untill boot menu show
step3 :- select ubuntu generic second option press Enter
step4 :- then select root shell press Enter
step5 :- type mount -o rw,remount /
step6 :- sudo passwd root or passwd
assign passwd and then repeat again the same passwd
Note :- inplace of root you can set your username or hostname any name that You assign during Installation OR Login.
You can also Create NEW USER
step7 :- sudo adduser username (Replace USERNAME with your username)
Step8 :- sudo passwd username
If you don't know your username, you can get a list of users on the system by running:
Step9 :- ls /home
********************************************************************************************
Please Bye Web Hosting from any site HostGator, GoDaddy and Bluehost, I will get Small %. Just Click Below Link to Redirect to Website.
PLEASE Click Below Link to Redirect to HostGator Web Hosting….
http://goo.gl/znPKM8
PLEASE Click Below Link to Redirect to Bluehost Web Hosting…
http://goo.gl/tGawjL
--------------------------------------------------------------------------------------------------------------
For Your Information Only
I am Willing to Make a FREE or CHARGE Website, if YOU WANT ME TO MAKE A VIDEOS ON Different Technologies/field I WILL DO IT..
Watch Others Videos and Have any Quries Email to me on (itcloudnet@gmail.com)
----------------------------------------------------------------------------------------------------------------
NOTE :- For Any Clarification Please Comment Below
Comment,
Like and
Share us and help us to spread.
####--------------------------------------------------------------------------------------####
Subscribe to Cloud Network :- http://goo.gl/LjKGzc
Website :- http://www.cloudnetwork.in
Like us on Facebook :- http://facebook.com/itcloudnetwork
Follow us on Twitter :- http://twitter.com/itcloudnet
Circle us on Google+ :- https://goo.gl/StVdHb
Pin us on Pinterset :- http://pinterset.com/itcloudnet
Add us on LinkedIn :- http://in.linkedin.com/pub/itcloudnet
Skype Id :- cloud.network1
E-Mail Id :- itcloudnet@gmail.com
####----------------------------------------------------------------------------------------####
Thanking You
Hope U Like it........