WhileNetworking

  • Home
  • CCNA
  • Cisco Packet Tracer Download
    • Cisco packet tracer 6.3
    • cisco packet tracer 6.2
    • Cisco Packet Tracer 7
  • Linux Server Management
  • About Us
  • Privacy Policy
  • Contact Us

How to recover lost password in Linux (CentOS/ Red Hat)?

You are most welcome to this post.
recover lost password
Really thanks to you for your interest in this topics. :)

In this post we’ll discuss, how to recover lost password in Linux (CentOS/Red Hat)
=> At first, we Reboot the system by pressing Ctr+Alt+del
=> After that, we need to edit the default boot loader entry
=> After that, press ‘e’ to edit the current entry
=> Cursor navigate to the line that starts with ‘linux16’.
=> After that, press ‘End’ button to move the cursor to the end of the line.
=> Find, ‘rd.break’ to the end of the line.
=> Finally, Press ‘Ctrl+x’ to boot using the modified config.

switch_root:/# mount -o remount,rw /sysroot
switch_root:/# chroot /sysroot

sh-4.2# passwd    [press enter]

: ******* (123456)
: ******* (123456)

sh-4.2# touch /.autorelabel
sh-4.2# exit

switch_root:/# exit

=> Wait for 2 Min

=>Now, login with new password

[root@desktopX ~]# passwd   ; press Enter

Sometimes it is needed to recover lost password. So in this type of situation this type of tutorial is needed. I can share my experience about this. I was so busy in my work for one month, so i can’t be able to log in my Linux OS. Generally i remember the password. Also I keep my password writing. But at that time i can’t be able to remember the password. The password i enteres, showing wrong password. I was also unable to find the paper i wrote the password. So then i need to recover lost password.

Hope that this post will help to if you forget your password. If you have any kinds of question or suggestion, please comment below. Thanks you and have a good day.

Jun 4, 2016Himadri
 
Linux process system discussionNetwork management in Linux(CentOS/Red Hat)

Leave a Reply Cancel reply

Himadri

Hi, I'm Himadri. I love blogging with tech topics, specially computer networking. We'll have more fun in the upcoming day. Stay with me. :)

June 4, 2016 4 Comments Linux installation and server managementLinux lost password recover, password recover in linux273
Feel Free to Share :)
0
GooglePlus
0
Facebook
0
Twitter
0
Digg
0
Delicious
0
Stumbleupon
0
Linkedin
0
Pinterest
Find Us on Facebook
Choose a category !!
  • CCNA
  • Cisco Certification Exam
  • cisco packet tracer 6.2
  • Cisco packet tracer 6.3
  • Cisco Packet Tracer 7
  • Cisco Packet Tracer 7.1
  • Cisco Packet Tracer 7.2.1
  • Cisco Packet Tracer 7.3
  • Cyber Security
  • Engineering Ebooks
  • Excel
  • IELTS Ebook
  • Internet
  • Know computer
  • Know your computer
  • Laser Processing of Material
  • Linux installation and server management
  • PDF
  • Technology
  • Uncategorized
Archieves
Footer Sidebar 1

Drop a widget on "Footer Sidebar 1" sidebar at Appearance > Widgets page.

W
SC
wordpress counter
Analytics
Recent Comments
    Browse by categories
    Cyber SecurityLinux installation and server managementCCNAUncategorizedKnow your computerKnow computerCisco Packet Tracer 7Cisco Certification ExamInternetEngineering EbooksCisco Packet Tracer 7.3cisco packet tracer 6.2Cisco packet tracer 6.3Cisco Packet Tracer 7.1PDFExcelLaser Processing of MaterialTechnologyCisco Packet Tracer 7.2.1IELTS Ebook
    Feel free to contact with us

    Hi, any kind of comment or suggestion is valuable to us. So feel free to contact with us.

    Email: himadri.shekhar.bd@gmail.com

    Name: WhileNetworking.com

    2021 © WhileNetworking