내 PMTA 서버가 성공적으로 설치되지 않았습니다.

내 PMTA 서버가 성공적으로 설치되지 않았습니다.

내 PMTA가 성공적으로 설치되지 않았으며 오류 코드는 PMTA의 작업입니다. 제어 프로세스가 오류 코드와 함께 종료되어 서비스가 실패했습니다. 시스템 상태 pmta를 참조하세요. 서비스 및 저널-ke여기에 이미지 설명을 입력하세요.

답변1

이미지는매우읽기 힘들지만 PolicyKit이 pmta서비스를 중지하거나 다시 시작할 수 있는 권한이 있는지 확인하지 못해 명령이 실패한 것으로 보이며 해당 오류는 실제 서비스와는 관련이 없습니다 pmta.

"핵심" 오류 메시지는 다음과 같습니다.

org.freedesktop.PolicyKit1.Error.Failed: Cannot determine user of subject (polkit-error-quark, 0)

세션이 특이한 방식으로 시작되었나요? 아니면 /proc파일 시스템에 대한 세션의 액세스를 제한하는 것이 있습니까 ?

바라보다: https://mellowhost.com/blog/unable-to-register-authentication-agent-gdbus-errororg-freedesktop-policykit1-error-failed-cannot-determine-user-of-subject-cyberpanel-centos-7.html

/proc파일 시스템이 쉘 세션에서 숨겨진 경우 (예: /proc마운트 hidepid=2옵션을 사용하여 마운트) polkitd사용자가 이를 볼 수 있도록 허용해야 합니다 /proc. 링크에서 권장되는 절차는 다음과 같습니다.

groupadd nohideproc                    # add a group that will be exempt from /proc hiding 
usermod -a -G nohideproc polkitd       # add user polkitd to that group
mount -o remount,rw,hidepid=2,gid=nohideproc /proc   # remount /proc with the "gid=nohideproc" mount option added
systemctl restart polkit
systemctl restart polkit    # (do this twice)

이 작업을 완료한 후에 gid=nohideproc는 변경 사항이 완전히 지속되도록 파일 시스템의 마운트 옵션도 추가해야 합니다./proc/etc/fstab

관련 정보