You are not logged in.

#1 2013-08-06 08:37:25

elk0
Member
Registered: 2013-08-06
Posts: 6

User unknown after Update

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/false

I 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

#2 2013-08-06 08:44:34

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,737
Website

Re: User unknown after Update

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

#3 2013-08-06 09:20:52

elk0
Member
Registered: 2013-08-06
Posts: 6

Re: User unknown after Update

Simply userdel elk0 and useradd elk0?

useradd itself doesn't want to add my user because it's still there

Offline

#4 2013-08-06 09:22:18

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: User unknown after Update

Moving to Newbie Corner...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#5 2013-08-06 09:34:19

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,737
Website

Re: User unknown after Update

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

#6 2013-08-06 10:20:49

elk0
Member
Registered: 2013-08-06
Posts: 6

Re: User unknown after Update

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/false

As 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/issue

Last edited by elk0 (2013-08-06 10:24:23)

Offline

#7 2013-08-06 10:27:07

elk0
Member
Registered: 2013-08-06
Posts: 6

Re: User unknown after Update

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

Board footer

Powered by FluxBB