重启服务器,报错:
Authorization not available. Check if polkit service is running or see debug message for more information. 解决: 1.systemctl reinstall polkit 2.systemctl restart polkit 任然报错的话,操作如下: 1. 以下2个复合命令以检查并有条件地创建用户/组 # getent group polkitd >/dev/null && echo -e "\e[1;32mpolkitd group already exists\e[0m" || { groupadd -r polkitd && echo -e "\e[1;33mAdded missing polkitd group\e[0m" || echo -e "\e[1;31mAdding polkitd group FAILED\e[0m"; } # getent passwd polkitd >/dev/null && echo -e "\e[1;32mpolkitd user already exists\e[0m" || { useradd -r -g polkitd -d / -s /sbin/nologin -c "User for polkitd" polkitd && echo -e "\e[1;33mAdded missing polkitd user\e[0m" || echo -e "\e[1;31mAdding polkitd user FAILED\e[0m"; } 执行这2条命令,都提示存在的话,进行第二步: 2.对 polkit 的相关文件进行重新授权 # rpm -Va polkit\* && echo -e "\e[1;32mpolkit* rpm verification passed\e[0m" || { echo -e "\e[1;33mResetting polkit* rpm user/group ownership & perms\e[0m"; rpm --setugids polkit polkit-pkla-compat; rpm --setperms polkit polkit-pkla-compat; } 3.重启shutdown -r now 重启后,再执行reboot命令,就不报Authorization not available. Check if polkit service is running or see debug message for more information了。结束。 标签:available,information,group,service,polkitd,echo,polkit,rpm,0m From: https://www.cnblogs.com/liusingbon/p/16900121.html