You are not logged in.

#1 2016-10-20 22:08:28

Shim
Member
Registered: 2013-08-23
Posts: 27

[SOLVED] problems after system update and running pacdiff

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

#2 2016-10-20 22:13:14

eschwartz
Fellow
Registered: 2014-08-08
Posts: 4,097

Re: [SOLVED] problems after system update and running pacdiff

Reboot to a LiveUSB?


Managing AUR repos The Right Way -- aurpublish (now a standalone tool)

Offline

#3 2016-10-21 02:31:00

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: [SOLVED] problems after system update and running pacdiff

Not a Pacman issue, moving to NC...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#4 2016-10-21 08:59:13

berbae
Member
From: France
Registered: 2007-02-12
Posts: 1,302

Re: [SOLVED] problems after system update and running pacdiff

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

#5 2016-10-22 15:13:42

Shim
Member
Registered: 2013-08-23
Posts: 27

Re: [SOLVED] problems after system update and running pacdiff

Thank you everyone! I panicked a little bit the other day when my computer refused to recognize me but your advice helped smile
I booted from LiveCD, did chroot and restored shadow, gshadow, passwd, group from the backup files.

Offline

Board footer

Powered by FluxBB