Bug 1272998 - register-ds-admin.pl changes admin certificate database file rights.
register-ds-admin.pl changes admin certificate database file rights.
Status: CLOSED DUPLICATE of bug 1260445
Product: Red Hat Directory Server
Classification: Red Hat
Component: Admin (Show other bugs)
9.1
Unspecified Unspecified
unspecified Severity medium
: ---
: ---
Assigned To: Rich Megginson
Viktor Ashirov
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2015-10-19 07:47 EDT by German Parente
Modified: 2016-03-09 20:16 EST (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2016-03-09 20:16:55 EST
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description German Parente 2015-10-19 07:47:40 EDT
Description of problem:

register-ds-admin.pl changes admin certificate database file rights.

Version-Release number of selected component (if applicable): 389-admin-1.1.42-1.el6dsrv

Steps to Reproduce:
1. setup-ds-admin.pl using custom directory server user (I have not checked with nobody).

2. check certificate databasse file rights:

[root@dhcp-10-12-211-158 ~]# ls -ltr /etc/dirsrv/admin-serv/*.db
-rw-------. 1 dirsrv root 65536 Oct 19 05:30 /etc/dirsrv/admin-serv/cert8.db
-rw-------. 1 dirsrv root 16384 Oct 19 05:30 /etc/dirsrv/admin-serv/key3.db
-rw-------. 1 dirsrv root 16384 Oct 19 05:30 /etc/dirsrv/admin-serv/secmod.db
[root@dhcp-10-12-211-158 ~]# 

3. setup-ds.pl to install a second server

4. register-ds-admin.pl to register the second server 

5. check file rights:

[root@dhcp-10-12-211-158 ~]# ls -ltr /etc/dirsrv/admin-serv/*.db
-rw-r--r--. 1 root root 65536 Oct 19 07:35 /etc/dirsrv/admin-serv/cert8.db
-rw-r--r--. 1 root root 16384 Oct 19 07:35 /etc/dirsrv/admin-serv/key3.db
-rw-r--r--. 1 root root 16384 Oct 19 07:35 /etc/dirsrv/admin-serv/secmod.db
[root@dhcp-10-12-211-158 ~]# 

Actual results:

rights of admin certificate database are changed.

Additional info:

workaround: change the rights manually.
Comment 1 Noriko Hosoi 2015-10-19 14:46:05 EDT
Upstream ticket:
https://fedorahosted.org/389/ticket/48314

Note You need to log in before you can comment on or make changes to this bug.