nslcd.conf権限の問題

nslcd.conf権限の問題

nss-pam-ldapパッケージがインストールされた新しいAlmaLinux 8.8がインストールされています。

nslcdサービスを再起動しようとすると失敗します。

# systemctl restart nslcd.service 
Job for nslcd.service failed because the control process exited with error code.
See "systemctl status nslcd.service" and "journalctl -xe" for details.

とりわけ、以下をjournalctl -xe提供します。

Unit nslcd.service has begun starting up.
Nov 11 13:09:24 nslcd[99425]: nslcd: cannot open config file (/etc/nslcd.conf): Permission denied
Nov 11 13:09:24 systemd[1]: nslcd.service: Control process exited, code=exited status=1
Nov 11 13:09:24 systemd[1]: nslcd.service: Failed with result 'exit-code'.

私のnslcd.conf読書は次のとおりです

# The user and group nslcd should run as.
uid root
gid root

uri ldaps://some.stuff.de
base ou=dir,dc=some,dc=stuff,dc=de

# SSL options
#ssl off
tls_reqcert demand
tls_cacertfile /etc/pki/tls/certs/ca-bundle.crt

権限:

# ls -l nslcd.conf 
-rw-r--r--. 1 root root 684 Nov 11 13:07 nslcd.conf

/var/run/nslcdの権限を手動でからに変更nslcd:rootしましたroot:root。プロセスがconfファイルを読み取る原因が何であるかわかりません。

ベストアンサー1

おすすめ記事