Linux

[Linux] pam_unix(sudo:auth): conversation failed, auth could not identify password for [service]

plastic2113 2024. 9. 27. 13:20
728x90
반응형

Symptom..

서비스[service]는 올라가있는데(active), 로그를 보면 실패했다~ 안된다~ 는 식으로 나옴.

pam_unix(sudo:auth): conversation failed
pam_unix(sudo:auth): auth could not identify password for [service]

추가로 pam이나 auth, sudo를 얘기함.

반응형

Touble-shooting..

/etc/sudoers에 서비스를 사용하는 사용자를 추가해준다.

[user]	ALL=NOPASSWD:[command]
# ex)
# test-user ALL=NOPASSWD:/bin/test-service

/etc/sudoers파일을 수정 한 후 서비스 재시작하기

service [service] restart
# or
systemctl restart [service]
728x90

Verifying..

서비스를 재시작 한 후 status확인해보면 정상적으로 잘 작동을 확인 할 수 있다.

service [service] status
# or
systemctl status [service]
728x90
반응형