标签:game postfix enable unit tin failed get start 导致
事发缘由:因三级等保、需要将centos7系统中的”高危”用户进行封禁或者注释,用户有:
dademon、adm、lp、shutdown、halt、mail、operator、games
ftp、nobody、system-network、polkitd、dbus、postfix,其中polktd、dbus注释后重启机子直接导致机子启动不来,进入单用户取消注释方可正常启动。
后遗症来了:正常启动后 ,登录非常慢,连服务器正常启动都不行,直接报错:
Authorization not available. Check if polkit service is running or see debug message for more information.
Failed to restart systemd-logind.service: Connection timed out
意思就是请检查polkit这个服务是否运行,当我去检查的时候polkit这个服务已经处于不运行的状态了。可是当我去使用
systemctl start polkit 去启动服务时候直接报错:Failed to get properties: Failed to activate service ‘org.freedesktop.systemd1‘: timed out
查询message日志 dbus一直在报错:
May 25 16:14:33 localhost systemd: Starting Login Service...
May 25 16:14:57 localhost dbus[1112]: [system] Failed to activate service ‘org.freedesktop.login1‘: timed out
May 25 16:14:58 localhost dbus[1112]: [system] Failed to activate service ‘org.freedesktop.systemd1‘: timed out
May 25 16:14:58 localhost systemd-logind: Failed to enable subscription: Failed to activate service ‘org.freedesktop.systemd1‘: timed out
May 25 16:14:58 localhost systemd-logind: Failed to fully start up daemon: Connection timed out
May 25 16:14:58 localhost systemd: systemd-logind.service: main process exited, code=exited, status=1/FAILURE
May 25 16:14:58 localhost systemd: Failed to start Login Service.
May 25 16:14:58 localhost systemd: Unit systemd-logind.service entered failed state.
May 25 16:14:58 localhost systemd: systemd-logind.service failed.
May 25 16:14:58 localhost systemd: systemd-logind.service has no holdoff time, scheduling restart.
May 25 16:14:58 localhost systemd: Starting Login Service...
百度查资料:/usr/lib/polkit-1/polkitd --no-debug
打开一个小窗口服务能正常进行启动已经关闭。但是启动polkit 服务时候处于无效状态。目前只能解决到这里……尽力了……
记录一次polkitd的报错(只解决了其他服务能正常使用systemctl)
标签:game postfix enable unit tin failed get start 导致
原文地址:https://www.cnblogs.com/meml/p/14809654.html