SSSD failed to start with error could not stat file [/etc/resolv.conf]. Error [13:Permission denied]
SSSD failed to start with error could not stat file [/etc/resolv.conf]. Error [13:Permission denied]
I faced this issue when I was Checking to enable SSSD on our redhat 6 server. When I start the SSSD demon after joining the machine To an AD the daemon was failing with "failed to start error could not stat file permission denied".
The Logs can be found at sssd logs. After checking for a few minutes, I got to know that it could be due to the selinux enforcing mode which causing this issue. To find out more logs for the issue please check "audit.log" file.
To solve this issue we need to Restore selinux context of /etc/resolv.conf file.
This we can do you by using the "restorecon" command. The -v option will display on the screen the previous security context and the newly changed selinux context as shown below.
# restorecon -v /etc/resolv.conf
Restart the SSSD Deamon
# systemctl start sssd
No comments