Hello Everyone,
In this tutorial,
Let Us Reset Root Password & Forgetter…
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
NOTE :- For Any Clarification Please Below
Comment,
Like and
Share us and help us to spread.
####--------------------------------------------------------------------------------------####
Subscribe :- http://www.youtube.com/user/itcloudnet?sub_confirmation=1
Website :- http://www.cloudnetwork.in
Facebook :- http://facebook.com/itCloudNetwork/
Twitter :- http://twitter.com/itcloudnet
Pinterset :- http://pinterset.com/itcloudnet
LinkedIn :- http://in.linkedin.com/pub/itcloudnet
Google+ :- https://plus.google.com/u/0/107923552480070716949/posts
Skype Id :- cloud.network1
E-Mail Id :-
[email protected]
####----------------------------------------------------------------------------------------####
Thanking You
Hope U Like it........