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
 

Share with friends :

  • Click to share on Twitter (Opens in new window)
  • Click to share on Facebook (Opens in new window)
  • Click to share on LinkedIn (Opens in new window)
  • Click to share on Tumblr (Opens in new window)
  • Click to share on Pinterest (Opens in new window)
  • Click to share on WhatsApp (Opens in new window)
  • Click to email a link to a friend (Opens in new window)
  • Click to share on Pocket (Opens in new window)
  • Click to share on Telegram (Opens in new window)
  • Click to share on Reddit (Opens in new window)
  • Click to print (Opens in new window)

Related

Linux process system discussionNetwork management in Linux(CentOS/Red Hat)

Leave a Reply Cancel reply

5 × four =

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 linux266
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
Top posts
  • Packet tracer 6.2 student version for Linux - Free download
  • Cisco Certification Exam Discount Program
  • 10 FAQs you need to know about Cisco Certification Exam Discount Vouchers
Archieves
Get latest updates by Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 19 other subscribers
W
SC
wordpress counter
Analytics
Recent Comments
    Browse by categories
    Cyber SecurityLinux installation and server managementCCNAKnow your computerKnow computerCisco Packet Tracer 7UncategorizedCisco Certification ExamInternetPDFCisco Packet Tracer 7.3Engineering EbooksCisco packet tracer 6.3cisco packet tracer 6.2Cisco Packet Tracer 7.1TechnologyExcelLaser Processing of MaterialCisco 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