You are on page 1of 4

OpenTechy.

com Promoting opensource Technologies

Home
About Us
NetBsd
OpenSource
Python
FreeBsd
CWP

CWP / OPENSOURCE FOLLOW:

How to fix
GDBus.Error:org
.freedesktop.Pol
icyKit1.Error.Fail
ed
BY SYSADMIN
·
PUBLISHED MAY 9, 2020
·
UPDATED MAY 13, 2020

On centos 7, there are SHARE

instances where you



get the error Unable to
register authentication 
agent:
GDBus.Error:org.freedesktop.PolicyKit1.Error.Failed:
Cannot determine user
of subject

Error registering
authentication agent:
GDBus.Error:org.freedesktop.PolicyKit1.Error.Failed:
Cannot determine user
of subject (polkit-
error-quark, 0)

This usually happens


when trying to restart a
systemd service.

The workaround is as
follows:

groupadd -g 23
nohidproc

usermod -a -G
nohidproc polkitd

mount -o
remount,rw,hidepid
=2,gid=nohidproc
/proc

systemctl restart
polkit

Add the following in


/etc/fstab as well

echo "proc /proc proc

defaults,hidepid=2,gid=nohidproc

0 0" >> /etc/fstab

After mount the new


mountpoint

mount -a

systemctl restart
polkit
PREVIOUS NEXT STORY

STORY Be on Top
How to of your
 check for Game- A 
memory on look at the
FreeBSD Linux top
command

 YOU MAY ALSO LIKE...

How to How to How to


setup make setup
DNS CWP Pro cwp
cluster on work server to
CWP 2 – immediat relay
Add ely emails to
webserve remote
JANUARY 9,
rs to DNS 2019
mail
cluster server

JANUARY 8, JUNE 27,


2020 2019

3 RESPONSES

 Comments 3

 Pingbacks 0

Edward 
June 20, 2020 at 7:02 am
Hey! Thanks for this.

You specify the -g 23 option to


groupadd. Note that this is not
necessary. Any group ID will do,
even those > 1000.
Reply
Hostdonner

July 2, 2020 at 12:33 am

It worked fine for me. Thanks very


much.

Reply

gerard

August 14, 2020 at 11:12 am

Thank you!

Reply

LEAVE A REPLY

Comment

Name * Email *

Website

Post Comment

Home
About Us
Sample Page

OpenTechy.com © 2022. All Rights Reserved.

You might also like