You are not logged in.
Pages: 1
My /etc/group and /etc/passwd (and possibly others) are corrupted (my silly error handling pacnew files). I tried restoring the backups (group- and similar) and also ran grpconv, pwdconv,, pwck without fixing things. I've edited the files, using those in another machine as a template but no luck.
Various commands (e.g. ssh) fail with the message:
No user exists for uid 1000
Before I give up and reinstall, is there any way I can restore things to how they should be?
Offline
Have you tried booting archiso? Boot into it, and try to restore those backed up files. Still you should be careful. You do not know how dated these backups are (or am I wrong?).
Offline
Various commands (e.g. ssh) fail with the message:
No user exists for uid 1000
You deleted the entry for your user. You likely also deleted user and groups added by install scripts for various packages.
If your backups do not have it, you can easily recreate your user using the directions in the wiki.
For other missing or mangled entries, I don't know. Good luck.
There are other threads on this topic which you may want to read.
aur S & M :: forum rules :: Community Ethos
Resources for Women, POC, LGBT*, and allies
Offline
Thanks for replies. I can't recreate my user because it's already there. I can log in as ac without difficulty and do most things - just a few (mportant) fail.
I don't understand why it keeps saying the user ac is uid 1000. After reading the wikis I think my /etc/group and /etc/passwd are correct. /etc/passwd has:
ac:x:1000:100::/home/ac:/bin/bash
and /etc/group has:
users:x:100:ac
ac:x:100:ac
I'm not sure the last line should be there, but removing it doesn't help. The entries on a second machine are similar.
I'll sleep on it to see if I think of something else to try in the morning, otherwise I'll have to reinstall tomorrow.
Offline
I read that user line as user ac password is in shadow has uid 1000 gid 100 real name is empty home dir /home/ac/ shell is /bin/bash
The groups file both ac and users have gid 100
User ac already has gid of 100 so does not need to be a member of which ever entry you leave as 100
Offline
I couldn't work out what was wrong so I reinstalled on a new partition. Actually I'd been thinking of doing that anyway because the original partition had been getting too small so it was good that I had an incentive to make the effort. Installation was a lot simpler this time, now that I knew more about Arch.
Thanks to everyone who replied.
Offline
Pages: 1