RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 680564 - Don't create rundir in post installation script
Summary: Don't create rundir in post installation script
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: 389-ds-base
Version: 6.1
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: rc
: ---
Assignee: Rich Megginson
QA Contact: Chandrasekar Kannan
URL:
Whiteboard:
Depends On: 680284
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-02-25 22:22 UTC by Rich Megginson
Modified: 2015-01-04 23:46 UTC (History)
8 users (show)

Fixed In Version: 389-ds-base-1.2.8-0.4.a3.el6
Doc Type: Bug Fix
Doc Text:
Clone Of: 680284
Environment:
Last Closed: 2011-05-19 12:42:15 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHEA-2011:0533 0 normal SHIPPED_LIVE new package: 389-ds-base 2011-05-18 17:57:44 UTC

Description Rich Megginson 2011-02-25 22:22:29 UTC
+++ 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

Comment 1 Rich Megginson 2011-02-26 02:16:08 UTC
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

Comment 4 Amita Sharma 2011-04-15 08:57:27 UTC
I request dev to please verify this.

Comment 5 Rich Megginson 2011-04-15 14:22:19 UTC
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

Comment 6 Chandrasekar Kannan 2011-04-17 17:35:18 UTC
[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 ~]$

Comment 7 errata-xmlrpc 2011-05-19 12:42:15 UTC
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


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