Could not open file /var/log/sssd/sssd.log –Permission denied

This was the exactly the same problem I ran into before on auditd. The log directory for sssd was recreated somehow but the context of SELinux was not restored. That caused even root could not create the sssd logs under the directory and the service could not start.

sssd[sssd][17594]: Could not open file [/var/log/sssd/sssd.log]. Error: [13][Permission denied]

root@joetest1:~# ls -Zd /var/log/sssd/
unconfined_u:object_r:unlabeled_t:s0 /var/log/sssd/

As you can see, it had a context of unlabeled. After using “restorecon” on the directory, it has changed to “sssd_var_log_t”

root@joetest1:~# restorecon  /var/log/sssd/
root@jotestes1:~# ls -Zd /var/log/sssd/
unconfined_u:object_r:sssd_var_log_t:s0 /var/log/sssd/

After the change “systemctl restart sssd” worked and sssd can be started.

Advertisement

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s