Score:0

Unable to login - need to boot into single user and recover password?

ธง in

A week ago I installed Xubuntu (20.04?) on a Dell Latitude e6530 that had Windows 10 "ready to install" (I never agreed to MS terms, so didn't activate). I was the only user and had root access and (I'm assuming) superuser rights.

After installing Wine and Scribus and learning some how to navigate the system, I changed my password, set to No Password on Login, and noticing I wasn't an administrator, made myself one. I then closed lid (thinking that would put changes into effect - doh!), and once I opened lid, was prompted for a password, which was not accepted - neither the new one (which I uncharacteristically had written down) nor the old.

With help from Ask Ubuntu folks, I made it to the Grub (2.04) prompt to get into recovery mode. There I got stumped. Didn't know which to choose: Linux 5.4.0-96-generic or Linux 5.4.0-42-generic. The -96- appears to be more recent than my Xubuntu (if it indeed is 20.04 from April 2020). So I'm guessing I should edit the -42- one. [Dunno if using the wrong one will screw things up (even more).]

Once I get to the right recovery mode, and am presumably able to boot into single user mode, how do I recover my password, if that's what I need to do? And should I un-administrator myself?

Or perhaps I should cut my losses and reinstall the whole salami. After all, I don't understand most commands others have kindly offered; I don't think blindly following (anything or anyone) is a good idea.

Thank you one and all for your gracious support, including the (staffer?) who sent me a Yes/No query whether any of 16 suggestions had helped/resolved my issue. All I could answer is "not yet", but that wasn't an option, so I've been silent to that query so far.

guiverc avatar
cn flag
สิ่งนี้จะง่ายขึ้นหากคุณแม่นยำในรายละเอียดการเปิดตัว แต่เคอร์เนล 5.4 ที่คุณพูดถึงคือเคอร์เนล GA สำหรับ Ubuntu 20.04 LTS (Ubuntu LTS release มีสองตัวเลือกเคอร์เนลสแต็ก GA เป็นหนึ่งเดียว) เคอร์เนล 5.4.0-42-generic น่าจะเป็นสิ่งที่อยู่ในสื่อการติดตั้งของคุณ (ตรงกับ https://old-releases.ubuntu.com/releases/20.04.2/ubuntu-20.04-desktop-amd64.manifest) โดยที่ เนื่องจาก 5.4.0-96 มีแพตช์ความปลอดภัยที่ใช้ซึ่งน่าจะได้รับระหว่างการอัปเกรดระหว่างหรือหลังการติดตั้ง คุณสามารถใช้เพื่อแก้ไขปัญหาอย่างใดอย่างหนึ่ง -96 จะปลอดภัยกว่า
in flag
ขอบคุณ guiverc ซึ่งเป็นประโยชน์สำหรับระดับความเข้าใจของฉัน ฉันยินดีที่จะให้รายละเอียดการเผยแพร่อย่างแม่นยำหากฉันรู้จักพวกเขาหรือจะหาพวกเขาได้อย่างไร ฉันรู้แค่ว่าไดรฟ์ USB ที่ฉันติดตั้งจากนั้นมีไดเร็กทอรี efi ที่มีไฟล์ 3 ไฟล์เท่านั้น: bootx64.efi, grubx64.efi และ mmx64.efi ตั้งแต่ 29/07/2020 ฉันไม่รู้ว่านั่นคือวันที่ที่ไฟล์ถูกคัดลอกไปยังธัมบ์ไดรฟ์หรือวันที่วางจำหน่าย นั่นเป็นเหตุผลที่ฉันคาดเดาว่าฉันมี Xubuntu 20.04 คุณคิดว่าเป็นสมมติฐานที่ปลอดภัยหรือไม่?
in flag
ฉันคิดว่าฉันได้ทำการกู้คืนหลังจากเปลี่ยนรหัสผ่านสำเร็จที่ root@hulda-Latitude-E6530:~# แต่ระบบไม่รีบูตเมื่อเข้าสู่ exec /sbin/init การปิดแล็ปท็อปไม่ได้ทำให้ระบบกู้คืนมาให้ฉันเช่นกัน ดังนั้นฉันจึงตัดสินใจลดการสูญเสียและติดตั้งใหม่

โพสต์คำตอบ

คนส่วนใหญ่ไม่เข้าใจว่าการถามคำถามมากมายจะปลดล็อกการเรียนรู้และปรับปรุงความสัมพันธ์ระหว่างบุคคล ตัวอย่างเช่น ในการศึกษาของ Alison แม้ว่าผู้คนจะจำได้อย่างแม่นยำว่ามีคำถามกี่ข้อที่ถูกถามในการสนทนา แต่พวกเขาไม่เข้าใจความเชื่อมโยงระหว่างคำถามและความชอบ จากการศึกษาทั้ง 4 เรื่องที่ผู้เข้าร่วมมีส่วนร่วมในการสนทนาด้วยตนเองหรืออ่านบันทึกการสนทนาของผู้อื่น ผู้คนมักไม่ตระหนักว่าการถามคำถามจะมีอิทธิพลหรือมีอิทธิพลต่อระดับมิตรภาพระหว่างผู้สนทนา