Pacdif and meld on a packdiff new file that showed up about passwords has my system hosed up

I may experiment with that later this afternoon.

I saw that the /etc/passwd was mostly there just as I was called to Breakfast.

After a few chores, I saw your post. /etc/passwd had 38 lines in it, but my username was not listed. So using vi I entered to /etc/passwd

username:x:1000:1000:FullName:/home/username:/bin/bash

rebooted and was able to log in. So I guess the aftermath just leaves me without a valid /etc/passwd- file. Perhaps the system will take care of this on it’s own ?

I actually decided to just use cp to copy passwd to passwd-

Pudge

I know that and I think best choice is to remove pacnew. Am I right ?

if you decide to try and fix passwd by re-entering your user and don’t know what your UID and GID are (both 1000 in my case)
then in a terminal window do

id YourUserName

in my case
uid=1000(UserName) gid=1000(UserName) groups=1000(UserName),3(sys),998(wheel),982(rfkill)

Good luck

That probably won’t work if it isn’t in /etc/passwd though.

1 Like

You are correct. I am sure I did the

 id YourUserName

after I fixed /etc/passwd when trying to think of how to help @mlytle0
So, if mlytle0 doesn’t remember his UID and GID then if the system was originally installed using the liveISO I think it uses 1000 for both by default?

Pudge

Correct.

1 Like

FWIW: I checked on my system: it’s 1000 for UID, GID and groups.

1 Like

Not exactly sure what you are referring to, but basically, after studying the changes carefully and possibly merging (some) changed parts you can delete the .pacnew file (I usually delete the .pacnew file after checking and possibly merging it).

Also, if you don’t delete the .pacnew file, that should be OK too.

Looking at using a live CD and then invoking timeshift from there.

Found this: https://bbs.archlinux.org/viewtopic.php?id=256665

Frustrating.

I found this older post:

They suggest you can install timeshift on the live CD stick with yay.

"Yes simply install timeshift on the live USB and choose the restore snapshot.

yay timeshift
yay cronie
run timeshift . "

Problem is, I can’t use yay to install anything on the live CD.

It sees the network, Firefox sees the web.

Seems like this could work if I could install things on this liveCD.

timeshift is in the repos now.

sudo pacman -Sy timeshift

That being said, you don’t really need that. If you have a timeshift backup you can manually restore that one file.

just a copy to copy? It’s not compressed or encrypted?

Is it btrfs snapshot or a timeshift filesystem snapshot?

But yes, either way, they should be available to copy the file.

1 Like

Honestly don’t know. It was installed using defaults. It runs, I know I have lots of backups in there.

Find the backups and copy the file out.

2 Likes

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.