You are not logged in.
Pages: 1
I updated my arch distribution and thought i could be lazy and handle the pacnew files automatically which was a bad idea.
Now i have the problem, that my user is not known to the system.
Whoami sasy: whoami: cannot find name for user ID 1000
/etc/passwd says:
root:x:0:0:root:/root:/bin/bash
bin:x:1:1:bin:/bin:/bin/false
daemon:x:2:2:daemon:/sbin:/bin/false
mail:x:8:12:mail:/var/spool/mail:/bin/false
ftp:x:14:11:ftp:/srv/ftp:/bin/false
http:x:33:33:http:/srv/http:/bin/false
nobody:x:99:99:nobody:/:/bin/false
dbus:x:81:81:System message bus:/:/bin/false
elk0:x:1000:100::/home/elk0:/bin/zsh
avahi:x:84:84:avahi:/:/bin/false
usbmux:x:140:140:usbmux user:/:/sbin/nologin
rtkit:x:133:133:RealtimeKit:/proc:/sbin/nologin
gdm:x:120:120:Gnome Display Manager:/var/lib/gdm:/sbin/nologin
ntp:x:87:87:Network Time Protocol:/var/lib/ntp:/bin/false
git:x:999:998:git daemon user:/:/bin/bash
uuidd:x:998:997::/:/sbin/nologin
mysql:x:89:89::/var/lib/mysql:/bin/false
kdm:x:135:135::/var/lib/kdm:/bin/false
polkitd:x:102:102:Policy Kit Daemon:/:/bin/falseI googled a lot but nothing worked yet (i even tried to revert to the backuped files. Now i am at the end of my linux knowledge and need help urgently.
Offline
You need to re-add your user, and any other users your system needs. You'll probably need to do the same with groups.
Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD
Making lemonade from lemons since 2015.
Offline
Simply userdel elk0 and useradd elk0?
useradd itself doesn't want to add my user because it's still there
Offline
Moving to Newbie Corner...
Offline
So it is, ignore my previous post, I thought you'd replaced your custom passwd file with a pacnew. Can you explain how you handled the pacnew files "automatically", and which files were affected (see /var/log/pacman.log's latest entries.)
Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD
Making lemonade from lemons since 2015.
Offline
I ran into the tex problem which is described here https://www.archlinux.org/news/texlive- … ervention/ and used pacdiff. Because i was lazy (yes shame on me, it will never happen again, hard lesson!), i just ran through the process which than has overwritten the passwd with passwd.pacnew, which has the following content:
root:x:0:0:root:/root:/bin/bash
bin:x:1:1:bin:/bin:/bin/false
daemon:x:2:2:daemon:/sbin:/bin/false
mail:x:8:12:mail:/var/spool/mail:/bin/false
ftp:x:14:11:ftp:/srv/ftp:/bin/false
http:x:33:33:http:/srv/http:/bin/false
uuidd:x:68:68:uuidd:/:/sbin/nologin
dbus:x:81:81:dbus:/:/sbin/nologin
nobody:x:99:99:nobody:/:/bin/falseAs it seems now, this has also been done to the following files (backups of the old exists)
/etc/shadow
/etc/gshadow
/etc/group
So googling around someone with an similar sounding problem has resolved that by replacing the new files with the backups. So i did, but it didn't work.
Edit: pacman -Qii filesystem is giving me following List of backuped files:
UNMODIFIED /etc/fstab
UNREADABLE /etc/crypttab
UNREADABLE /etc/group
MODIFIED /etc/hosts
UNMODIFIED /etc/ld.so.conf
UNREADABLE /etc/passwd
UNREADABLE /etc/shadow
UNREADABLE /etc/gshadow
MODIFIED /etc/resolv.conf
UNMODIFIED /etc/motd
UNMODIFIED /etc/nsswitch.conf
MODIFIED /etc/shells
UNMODIFIED /etc/host.conf
UNMODIFIED /etc/securetty
MODIFIED /etc/profile
UNMODIFIED /etc/issueLast edited by elk0 (2013-08-06 10:24:23)
Offline
Fu... As i now see by thinking of the "UNREADABLE" up there, i again checked the rights of the passwd and there was no read flag. It seems to work with the read flag. Maybe that was the case?
Anyway, i want to thank you.
Offline
Pages: 1