You are not logged in.
So I did something unthinkably stupid while editing .pacnew and regular files using vimdiff: I accidentally deleted the passwd and the passwd.pacnew file from the /etc directory.
The good news is that I have a backup copy of the file saved on my backup drive from about a week ago when I last backed up, and there are also two passwd backup files still in the /etc directory (passwd- and passwd.OLD). The bad news is that I no longer have root access nor can I access my backup drive since all the authentication details were in the passwd file. Is there an easy way to create a new passwd file without root privileges that can be placed into the /etc directory?
Any help would be most appreciated. Thank you!
Last edited by cmorgenstern (2012-12-29 04:57:17)
"Never ascribe to malice that which is adequately explained by incompetence."
~ Napoleon I
Offline
LiveCD?
Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD
Making lemonade from lemons since 2015.
Offline
Chroot.
Offline
LiveCD?
Chroot.
Wiki article :-)
Offline
LiveCD?
Chroot.
Wiki article
Mark solved.
ᶘ ᵒᴥᵒᶅ
Offline
Ok, I just restored the file after chrooting into the system using a LiveCD. Thanks! I hoped it would be that straightforward.
Is there anything else I need to do besides restoring the file, or is it safe enough to unmount the temporary file system, exit the live environment, and try booting?
"Never ascribe to malice that which is adequately explained by incompetence."
~ Napoleon I
Offline
Done
Offline
All fixed, thanks!
"Never ascribe to malice that which is adequately explained by incompetence."
~ Napoleon I
Offline
Efficient Thread!
Offline