Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Yes (dvd) but this gives me a chance to post a 'burning Story share' here:
Yesterday, my fav trick, grub e init=/bin/sh rw, failed (I think it just rebooted!!!)
Further inspection (as user; root inaccessible) found: sh -> dash; static-sh -> busybox!!!
On that circa-6/14 FrankenMint(?) init=/static-sh got me a uid 0 #, so I could 'attack' shadow.
Strange? Normal? p.s. hdd 'rescue' didn't (seem to) work &isn't primitive enuf for this mll user
I suppose I could create a second VM, create appropriate users & copy appropriate bits of
/etc/passwd & /etc/shadow into the first VM (which I spent some time on configuration)?
Have you tried mounting the VM image, so that you can edit it directly?
I recently used the procedure here for a raw image containing logical volumes and it worked for me. I have also used qemu-nbd with success in the past.
I wouldn't try that procedure - it sounds so very risky with regard to the non-VM components on my PC.
I've been trying to edit the VM and destroyed it; but it wasn't of value beyond a considerable time configuring it.
So the question is now moot for me.
Normally I would have been able to edit GRUB to get into single-user mode & fix it that way.
However, starting a VM hides all this and whilst I tried booting with a live DVD, this doesn't contain a relevant password entry.
Actually, I'm pretty certain that renaming a user in the /etc/passwd file was a stupid thing to do.
Anyway, the VM has now been replaced.
Thanks for your interest.
No - I am using VirtualBox - it seems to be rather inefficient, but easy to set up.
Must try to see if kvm runs on a spare ancient laptop to see what happens.
Quote:
qemu? kvm? (time to 'bump' these up, on my to-learn list)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.