You are not logged in.
Hi. I recently messed up /etc/passwd and /etc/group as explained here . It seems it might be related.
The problem I have now is that the power management commands (systemctl {poweroff, hibernate, suspend}) "hangs" for my non-root user. They do nothing, and are not even logged to the journal.
When run as root they all work just fine.
I've tried reinstalling systemd, but not its dependencies.
Maybe systemd had a user or group that got lost from the files?
Last edited by Bladtman242 (2012-12-03 11:56:35)
Offline
You might want to post the contents of the files which you think might be responsible. Otherwise, it is going to be rather hard for anybody to say anything even vaguely helpful. (I guess somebody might know for sure it is irrelevant but otherwise, they will only be able to endorse the thought that it might be relevant.)
EDIT: I don't think systemd has a special user/group, though. (adm allows you to see the journal if you're in it but that shouldn't affect anything else that I know of.)
Last edited by cfr (2012-12-02 02:07:15)
CLI Paste | How To Ask Questions
Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L
Offline
Just in case:
root:x:0:0:root:/root:/bin/zsh
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
bladt:x:1000:100:Sigurt Bladt Dinesen,,,:/home/bladt:/bin/zsh
avahi:x:84:84:avahi:/:/bin/false
ntp:x:87:87:Network Time Protocol:/var/lib/ntp:/bin/false
git:x:999:999:git daemon user:/:/bin/bash
uuidd:x:998:998::/:/sbin/nologin
mysql:x:89:89::/var/lib/mysql:/bin/false
root:x:0:root
bin:x:1:root,bin,daemon
daemon:x:2:root,bin,daemon
sys:x:3:root,bin
adm:x:4:root,daemon
tty:x:5:
disk:x:6:root
lp:x:7:daemon,bladt
mem:x:8:
kmem:x:9:
wheel:x:10:root,bladt
ftp:x:11:
mail:x:12:
uucp:x:14:bladt
log:x:19:root
utmp:x:20:
locate:x:21:
rfkill:x:24:
smmsp:x:25:
http:x:33:
games:x:50:bladt
network:x:90:
video:x:91:bladt
audio:x:92:bladt
optical:x:93:bladt
floppy:x:94:
storage:x:95:bladt
scanner:x:96:bladt
power:x:98:bladt
nobody:x:99:
users:x:100:
dbus:x:81:
avahi:x:84:
ntp:x:87:
lock:x:54:
git:x:999:
uuidd:x:998:
mysql:x:89:
Offline
Try removing yourself from superfluous groups as they can cause problems with systemd. (Either try the wiki for the list or search the forums - there are some recent threads about which groups are and are not needed.)
CLI Paste | How To Ask Questions
Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L
Offline
The wiki just states that a bunch a groups are only needed if logind is broken (which mine seems to be), and my user is in neither of the two deprecated/unused groups?
I tried searching the forums like you suggested, but I didn't find anything usefull. Perhaps I don't know what I'm looking for? ![]()
I removed my user from all groups except wheel and user, but nothing changed.
Also: everything worked fine before I messed up my passwd and group files,
could you maybe check yours for systemd or logind users to find out if I accidentally removed them?
Last edited by Bladtman242 (2012-12-03 11:22:46)
Offline
[Putting this in a separate post because it solved the problem]
Checking the last couple lines lines from journalctl I saw that there was a problem with polkit. Googling around a bit showed that polkit does some of the systems authentication handling, so it makes sense that polkit might be responsible.
Further googling revealed this thread.
I didn't get the "GID" errors they got, but reinstalling polkit added polkit entries to both /etc/group and /etc/passwd
and after rebooting everything was fine again.
In retrospect I probably could have found out by checking /etc/shadow for entries that wasn't in passwd and group. Oh well ![]()
Marking thread as solved.
Offline