You are not logged in.

#1 2012-11-14 14:54:02

moai
Member
Registered: 2012-11-14
Posts: 2

PAM authentication error when updating polkit

Hi.

automounting stopped working after the change to systemd. The problem seems to be that polkit.service is not running. When I tried to (re)install it, it failed:

# pacman -S polkit
warning: polkit-0.107-4 is up to date -- reinstalling
resolving dependencies...
looking for inter-conflicts...

Targets (1): polkit-0.107-4

Total Installed Size:   1.75 MiB
Net Upgrade Size:       0.00 MiB

Proceed with installation? [Y/n] y
(1/1) checking package integrity                                                                                                [#############################################################################] 100%
(1/1) loading package files                                                                                                     [#############################################################################] 100%
(1/1) checking for file conflicts                                                                                               [#############################################################################] 100%
(1/1) checking available disk space                                                                                             [#############################################################################] 100%
(1/1) upgrading polkit                                                                                                          [#############################################################################] 100%
Password: 
groupadd: PAM: Authentication failure
useradd: group 'polkitd' does not exist
error: command failed to execute correctly

I've seen other people had similar problems installing polkit but their solutions didn't work for me. How can I solve this issue?

Offline

#2 2012-11-14 15:18:39

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: PAM authentication error when updating polkit

I have this in my /etc/group file

...
polkitd:x:102:

and this in /etc/passwd

...
polkitd:x:102:102:Policy Kit Daemon:/:/bin/false

Do you have conflicting gid's (or uid's)?

Offline

#3 2012-11-14 16:24:22

moai
Member
Registered: 2012-11-14
Posts: 2

Re: PAM authentication error when updating polkit

Nope. There were no conflicting entries. However, I just manually added your lines into my files and now the installation works. I'll have to see if the automounting works now as well. Thanks!

Offline

#4 2012-11-14 17:24:33

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

Re: PAM authentication error when updating polkit

I suspect that when you've had .pacnew files for /etc/group, etc. you've simply replaced the existing ones with the new ones. That will lead to this sort of problem, as groups and users are sometimes added/removed when packages are initially installed/removed, but are assumed to be there when up/downgrading.

You should be checking the commit diff for the affected file(s) to see what changes you need to make (if any).


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

Board footer

Powered by FluxBB