You are not logged in.
Today I updated the system, ran pacdiff to deal with pacnew files and got distracted while doing so. As result I overwrote the old /etc/group, /etc/passwd, /etc/sudoers and now my password is not recognized, I can't sudo, I can't login as root (and I'm afraid that if I turn off my computer I won't be able to log back in). What can I do to fix the problem without reinstalling the system?
Last edited by Shim (2016-10-22 15:14:17)
Offline
Reboot to a LiveUSB?
Managing AUR repos The Right Way -- aurpublish (now a standalone tool)
Offline
Not a Pacman issue, moving to NC...
Offline
You could try to restore an old state, using the backup files kept in /etc:
group-
gshadow-
passwd-
shadow-
Last edited by berbae (2016-10-21 08:59:31)
Offline
Thank you everyone! I panicked a little bit the other day when my computer refused to recognize me but your advice helped
I booted from LiveCD, did chroot and restored shadow, gshadow, passwd, group from the backup files.
Offline