You are not logged in.

#1 2023-10-02 06:40:53

Jocomol
Member
From: Switzerland
Registered: 2022-07-13
Posts: 35
Website

[Solved] Unable to log in after overwriting files with pacnew files

Yesterday I overwrote some files:
- /etc/pam.d/passwd
- /etc/shells
- /etc/pacman.d/mirrorlist
- /etc/makepkg.conf

Now I cannot log in as my normal user, root works though so I can fix this. I ensured that I enter the password correctly when login in. /etc/passwd and /etc/shadow weren‘t touched and I am able to su to the user, switch passwords and execute sudo. Starting dwm with xinit doesn‘t work though.

First Question:
I use zsh, does zsh need to be in /etc/shells

Second Question:
I guess the login files due to the changes in /etc/pam.d/passwd. Now every like has „system-auth“ now which wasn‘t before. When I looked at my buddies config file it also used system-auth so I am not sure what is wrong here. As far as I can tell /etc/pam.d/system-auth looks fine but I have no knowledge with pam.

Here are some files which I guess are relevant
passwd: http://0x0.st/HWPA.txt
system-auth: http://0x0.st/HWPm.txt

I‘ll gladly submit more files.

Thank you very much!

PS: I‘ll read up on how to handle pacnew files as soon as possible so this isn‘t repeated

Last edited by Jocomol (2023-10-02 07:10:49)

Offline

#2 2023-10-02 07:05:39

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,082

Re: [Solved] Unable to log in after overwriting files with pacnew files

I use zsh, does zsh need to be in /etc/shells

Yes and it's likely the cause.

Offline

#3 2023-10-02 07:10:36

Jocomol
Member
From: Switzerland
Registered: 2022-07-13
Posts: 35
Website

Re: [Solved] Unable to log in after overwriting files with pacnew files

Yup that did it. i tried it before but only added /usr/bin/zsh to it, /bin/zsh was missing aswell.

Thanks as always seth.

Offline

Board footer

Powered by FluxBB