hello everyone,
all of a sudden, I could not login with my user anymore. i still can login with root but my normal user seems to be gone completely… Any idea how that could have happend? Stupid things are possible - I am still rather a beginner… but I just cannot imagine what happend here…
To know more info about your user, run getent passwd and be sure your user is on the list. If not, your user has been deleted. To make things easier you can also run getent passwd | grep your_user changing your_user for your user name.
Then run sudo passwd -S your_user and tell us if there is a P, L or NP after the user name in the output (with password, locked or no password).
If you have a Manjaro usb drive, boot from it and then use manjaro-chroot -a to repair your system.
I encountered this error once with the system of a friend after an big update - login was only possible as root and all users were gone but the /home directories were still there.
I had to useradd the users again and I could chown the existing /home directories to the newly added users, so no harm done.
But I could not think of any way how this could have happened.
But some time later I caught the error before it happened on another system: While doing the update, pacnew-checker had found a new config file which was empty! This would have erased all users on the system. I cannot recall exactly which file it was, unfortunately.
I saw this on the second system because I helped with the update and /usr/bin/meld all pacnew-checker issues. That’s when I saw that there was this empty .pacnew file.
On the first system, I was called after the error had already occured, so I can only guess that it was the same issue there.
Something must have gone wrong during the update, maybe one mirror had an empty file or the file got corrupted during download… Don’t know.
Since I did not find any similar post on the forum, I shrugged it off as a freak incident.
The first line makes sure to have the correct packages, the second will print any existing pacnew or pacsave files.
For how to manage them etc see
The best way being;
DIFFPROG=meld pacdiff -s
( use v to view and merge as needed )
This is a concerning anecdote.
But if it were widespread I might expect more reports of such an issue.
Which may mean it was not a problem of the upgrade itself or packages in general.
In the large scheme of things I guess we would prefer if it was a sporadic download problem.
Probably /etc/passwd.pacnew … — I merged this one without looking properly and had to fix things via chroot. in other words, create new passwords for root and user(s).
It is great and all that @wuschel109 seems to have solved their problem -
but the feedback of the OP @haitifox is somewhat lacking specificity.
Not sure whether their problem is solved or whether there is progress.