How to Reset Root Password in Redhat Linux 7.2 Desktop | Workstation

Channel:
Subscribers:
25,100
Published on ● Video Link: https://www.youtube.com/watch?v=DXu-ttXN-Zc



Category:
Guide
Duration: 6:29
1,294 views
1


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........




Other Videos By Cloud Network


2016-03-02How to Install Glances Real Time System Monitoring Tool for CentOS, Fedora, Ubuntu, Debian
2016-03-02Linux Interview Question & Answers for Freshers - 2016 HD
2016-02-28How to Install JAVA JDK or JRE 8 on Windows 10
2016-02-28How to Install Eclipse Mars 2 (4.5.2) with JAVA JDK 8 on Windows 10
2016-02-28How to Upgrade MariaDB 5.5 to MariaDB 10.1 on CentOS/RHEL 7, Ubuntu 15.10 and Debian 8 Systems
2016-02-27How to Start/Stop & Enable/Disable FirewallD & Iptables Firewall on CentOS/RHEL 7 & Fedora 23
2016-02-27How to Optimize & Compress JPEG or PNG Images on CentOS/RHEL 7, Ubuntu 15.10 & Debian 8
2016-02-27How to Install Redhat Linux 7.2 Client on Virtual Box | VMWare Workstation
2016-02-27How to Make Full Screen Resolution in Redhat Linux 7.2 Workstation with Virtual box
2016-02-27CCNA Interview Question & Answer for Fresher and Experience
2016-02-24How to Reset Root Password in Redhat Linux 7.2 Desktop | Workstation
2016-02-21C Programming Interview Questions and Answers for Fresher - 2016 HD
2016-02-21MPLS Interview Questions and Answers for Fresher - 2016 HD
2016-02-21Hadoop Interview Questions and Answers for Fresher - 2016 HD
2016-02-20How to Install Redhat Linux 7.2 Workstation on Virtual Box | VMWare Workstation
2016-02-19Redhat Linux Desktop 7.2 on Virtual Box | VMWare Workstaition - Part 1
2016-02-17How to Install openSUSE Leap 42.1 Desktop in Virtual Box | VMWare Workstation
2016-02-10How to Install Redhat Linux 7.2 Server on Virtual Box | VMWare Workstation - 64Bit
2016-01-31How to Install Debian 8.3.0 GNU/Linux on Virtual Box
2016-01-31Active Directory Interview Question & Answers for Fresher & Experience
2016-01-31How to Install Zorin OS 10 Core Desktop on Virtual Box