SUDO権限が機能しません。私の問題が何であるかよくわかりません。

SUDO権限が機能しません。私の問題が何であるかよくわかりません。

私たちのサービスアカウントにnginxを再起動する機能を提供したいと思います。これは私が持っているものです。

Host_Alias      WEBSVR=int-a3web-01w
User_Alias      APPUSER=appmin
Cmnd_Alias      NGINX=/etc/init.d/nginx restart, /bin/systemctl restart nginx.service

APPUSER         WEBSVR=(root)NOPASSWD:NGINX

どういうわけか、まだパスワードの入力を求められます。 audit.logを追跡すると、このようなものが表示されます。

Jan 21 13:54:41 web01w polkitd[846]: Registered Authentication Agent for unix-process:29343:1402067 (system bus name :1.229 [/usr/bin/pkttyagent --notify-fd 5 --fallack], object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale en_US.UTF-8)
Jan 21 13:55:06 web01w polkit-agent-helper-1[29353]: pam_unix(polkit-1:auth): conversation failed
Jan 21 13:55:06 web01w polkit-agent-helper-1[29353]: pam_unix(polkit-1:auth): auth could not identify password for [root]
Jan 21 13:55:06 web01w polkit-agent-helper-1[29353]: pam_succeed_if(polkit-1:auth): requirement "uid >= 1000" not met by user "root"
Jan 21 13:55:06 web01w polkitd[846]: Unregistered Authentication Agent for unix-process:29343:1402067 (system bus name :1.229, object path /org/freedesktop/PolicyKit/AuthenticationAgent, locale en_US.UTF-8) (disconnected from bus)
Jan 21 13:55:06 web01w polkitd[846]: Operator of unix-process:29343:1402067 FAILED to authenticate to gain authorization for action org.freedesktop.systemd1.manage-uits for system-bus-name::1.230 [<unknown>] (owned by unix-user:appmin)

私たちは通常のユーザーアクセスにLDAPを使用し、このappminアカウントはローカルサービスアカウントなので、LDAPが私の問題の一部かどうかはわかりません。どんな助けでも大変感謝します。

ベストアンサー1

おすすめ記事