Hide Forgot
+++ This bug was initially created as a clone of Bug #680284 +++ We currently create /var/run/dirsrv in the post-install scripts if it doesn't already exist. This can cause problems with incorrect permissions when you run setup-ds.pl. The issue is that setup-ds.pl will leave the owner alone if /var/run/dirsrv exists already and it will reset the group permissions only. If a SuiteSpotGroup is not specified, the group permissions are set to none. This will cause the instance to not have permission to write it's pidfile unless it is configured to run as root. If we don't create /var/run/dirsrv at post-install, setup-ds.pl will create it with the proper permissions. --- Additional comment from rmeggins on 2011-02-24 21:31:15 EST --- Created attachment 480912 [details] 0001-do-not-create-var-run-dirsrv-setup-will-create-it-in.patch --- Additional comment from rmeggins on 2011-02-25 17:22:03 EST --- fedora rawhide: commit 31909e6aa2f3550fd87fb316c95bb43752035b49 Author: Rich Megginson <rmeggins> Date: Thu Feb 24 15:44:15 2011 -0700 f15: commit 31909e6aa2f3550fd87fb316c95bb43752035b49 f14: commit 36b41d533e48a56782567185f71b30f201439124 f13: commit 7f60adcb57e5edbe1e9206d14eb09772f44c5dfb el5: commit 9c6088654813d05b60d9b40f8f779ac81004bc38 and commit b5a7bced384e40f65be8a8d61ae05a8a61164bae
389-ds-base/RHEL-6 branch Checking in 389-ds-base.spec; /cvs/dist/rpms/389-ds-base/RHEL-6/389-ds-base.spec,v <-- 389-ds-base.spec new revision: 1.14; previous revision: 1.13 done
I request dev to please verify this.
steps to verify: 1) get a clean system that has never had rhds or 389 installed on it 2) install the 389-ds-base rpm (or yum install) 3) check to see that the directory /var/run/dirsrv does not exist
[svrbld@ds90-rhel6-32vm ~]$ sudo rpm -e 389-ds-base [svrbld@ds90-rhel6-32vm ~]$ sudo ls /var/run/dirsrv ls: cannot access /var/run/dirsrv: No such file or directory [svrbld@ds90-rhel6-32vm ~]$ sudo yum install 389-ds-base Setting up Install Process Resolving Dependencies --> Running transaction check ---> Package 389-ds-base.i686 0:1.2.8.2-1.el6 will be installed --> Finished Dependency Resolution Dependencies Resolved ================================================================================================================================== Package Arch Version Repository Size ================================================================================================================================== Installing: 389-ds-base i686 1.2.8.2-1.el6 DS90 1.2 M Transaction Summary ================================================================================================================================== Install 1 Package(s) Total download size: 1.2 M Installed size: 3.9 M Is this ok [y/N]: y Downloading Packages: 389-ds-base-1.2.8.2-1.el6.i686.rpm | 1.2 MB 00:00 Running rpm_check_debug Running Transaction Test Transaction Test Succeeded Running Transaction Warning: RPMDB altered outside of yum. Installing : 389-ds-base-1.2.8.2-1.el6.i686 1/1 Installed: 389-ds-base.i686 0:1.2.8.2-1.el6 Complete! [svrbld@ds90-rhel6-32vm ~]$ sudo ls /var/run/dirsrv ls: cannot access /var/run/dirsrv: No such file or directory [svrbld@ds90-rhel6-32vm ~]$
An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on therefore solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHEA-2011-0533.html