#7725 ipa-restore set wrong file permissions and ownership for /var/log/dirsrv/slapd-<instance> directory
Opened a year ago by abbra. Modified a day ago

Ticket was cloned from Red Hat Bugzilla (product Red Hat Enterprise Linux 7): Bug 1636765

Description of problem:
When attempting a restore, the permission are set to 755 and ownership
root:root for /var/log/dirsrv/slapd-<instance> which causes dirsrv not being
able to write to the access log


Version-Release number of selected component (if applicable):


How reproducible:
always

Steps to Reproduce:
1. ipa-restore /tmp/ipa-full-2018-10-02-11-53-58
2. grep log_flush_buffer /var/log/dirsrv/dirsrv/slapd-<instance>/errors
[07/Oct/2018:15:12:14.655887136 +0200] - ERR - log_flush_buffer - Unable to
open access file:/var/log/dirsrv/slapd-<instance>/access


Actual results:
[root@ipa1 dirsrv]# ll
total 4
drwxr-xr-x. 2 root root 4096 Oct  7 15:11 slapd-<instance>



Expected results:
[root@ipa1 dirsrv]# ll
total 4
drwxrwx---. 2 dirsrv dirsrv 4096 Oct  7 15:20 slapd-<instance>



Additional info:
Can be easily recovered manually by:
chmod 770 slapd-<instance>
chown dirsrv:dirsrv slapd-<instance>
SELinux context is correct

Metadata Update from @abbra:
- Custom field rhbz adjusted to https://bugzilla.redhat.com/show_bug.cgi?id=1636765

a year ago

Metadata Update from @rcritten:
- Issue assigned to rcritten

a day ago

Login to comment on this ticket.

Metadata