Mel
Melhttps://unixcop.com
Unix/Linux Guru and FOSS supporter

“Authorization not available”. Check if polkit service is running

One of the most irritant issues for system admins that I have encountered this morning on My Redhat/Centos 7.9 Server . let me show you in easy steps how to solve that and check if the Polkit Service is running.

Here bellow is my issue whe i ran the timedatectl command.

# timedatectl set-timezone Europe/Amsterdam
Authorization not available. Check if polkit service is running or see debug message for more information.
Failed to set time zone: Connection reset by peer

1-First Update your system ( you may use dnf also )

#yum update

2-Install these packages

#yum install setroubleshoot setools

3-Reboot your Server

#shutdown -r now 

4-Check Polkit Services

Now check the polkit services with systemctl

systemctl status polkit
[root@unixcop~]# systemctl status polkit
● polkit.service - Authorization Manager
   Loaded: loaded (/usr/lib/systemd/system/polkit.service; static; vendor preset: disabled)
   Active: active (running) since Thu 2021-11-11 09:16:12 CET; 29min ago
     Docs: man:polkit(8)
 Main PID: 877 (polkitd)
   CGroup: /system.slice/polkit.service
           └─877 /usr/lib/polkit-1/polkitd --no-debug

Nov 11 09:16:12 su444v1450 polkitd[877]: Started polkitd version 0.112
Nov 11 09:16:12 su444v1450 polkitd[877]: Loading rules from directory /etc/polkit-1/rules.d
Nov 11 09:16:12 su444v1450 polkitd[877]: Loading rules from directory /usr/share/polkit-1/rules.d
Nov 11 09:16:12 su444v1450 polkitd[877]: Finished loading, compiling and executing 2 rules
Nov 11 09:16:12 su444v1450 polkitd[877]: Acquired the name org.freedesktop.PolicyKit1 on the system bus
Nov 11 09:16:12 su444v1450 systemd[1]: Started Authorization Manager.
Nov 11 09:18:03 su444v1450 polkitd[877]: Registered Authentication Agent for unix-process:5463:12303 (system bus name :1.40 [/usr/bin...S.UTF-8)
Nov 11 09:18:03 su444v1450 polkitd[877]: Unregistered Authentication Agent for unix-process:5463:12303 (system bus name :1.40, object...rom bus)
Nov 11 09:41:18 su444v1450 polkitd[877]: Registered Authentication Agent for unix-process:5778:151848 (system bus name :1.101 [/usr/b...S.UTF-8)
Nov 11 09:41:19 su444v1450 polkitd[877]: Unregistered Authentication Agent for unix-process:5778:151848 (system bus name :1.101, obje...rom bus)
Hint: Some lines were ellipsized, use -l to show in full.

Run the command again

[root@unixcop~]# timedatectl set-timezone Europe/Amsterdam
[root@unixcop~]# timedatectl  status
      Local time: Thu 2021-11-11 09:41:30 CET
  Universal time: Thu 2021-11-11 08:41:30 UTC
        RTC time: Thu 2021-11-11 08:41:30
       Time zone: Europe/Amsterdam (CET, +0100)
     NTP enabled: yes
NTP synchronized: yes
 RTC in local TZ: no
      DST active: no
 Last DST change: DST ended at
                  Sun 2021-10-31 02:59:59 CEST
                  Sun 2021-10-31 02:00:00 CET
 Next DST change: DST begins (the clock jumps one hour forward) at
                  Sun 2022-03-27 01:59:59 CET
                  Sun 2022-03-27 03:00:00 CEST

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Latest articles

Join us on Facebook