Bug 853574

Summary: RFE - please change default permissions for client.cfg to 0644
Product: [Fedora] Fedora Reporter: Adam Miller <admiller>
Component: mcollectiveAssignee: Steve Traylen <steve.traylen>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 18CC: steve.traylen
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-09-17 17:45:40 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Adam Miller 2012-08-31 22:47:34 UTC
Description of problem:

rubygem-openshift-origin-msg-broker-mcollective needs to be able to read client.cfg and is currently using the following method (though not very successfully as it isn't currently working) to change them to 0644

%attr(0644,-,-) %ghost %{_sysconfdir}/mcollective/client.cfg

ReviewRequest: https://bugzilla.redhat.com/show_bug.cgi?id=845107 

Please change the perms of %{_sysconfdir}/mcollective/client.cfg to 0644 

Thank you, 
-AdamM

Comment 1 Steve Traylen 2012-09-05 22:17:19 UTC
Hi Adam,

client.cfg of course typically contains a password so am not keen on 0644.

I suggest I add an mco group to group own the file and then you can call

%pre
getent group mco | grep -q apache || usermod -a -G mco apache
exit 0

in your package. Okay?

You should probably add

Requires(pre): mcollective-client
Requires(pre): qpid-server   # assuming that adds the apache user?
Requires(pre): shadow-utils

Comment 2 Steve Traylen 2012-09-05 22:17:49 UTC
Hi Adam,

client.cfg of course typically contains a password so am not keen on 0644.

I suggest I add an mco group to group own the file and then you can call

%pre
getent group mco | grep -q apache || usermod -a -G mco apache
exit 0

in your package. Okay?

You should probably add

Requires(pre): mcollective-client
Requires(pre): qpid-server   # assuming that adds the apache user?
Requires(pre): shadow-utils

Comment 3 Fedora Update System 2012-09-05 23:06:00 UTC
mcollective-2.0.0-6.fc17 has been submitted as an update for Fedora 17.
https://admin.fedoraproject.org/updates/mcollective-2.0.0-6.fc17

Comment 4 Fedora Update System 2012-09-05 23:06:29 UTC
mcollective-2.0.0-6.el6 has been submitted as an update for Fedora EPEL 6.
https://admin.fedoraproject.org/updates/mcollective-2.0.0-6.el6

Comment 5 Fedora Update System 2012-09-05 23:06:39 UTC
mcollective-2.0.0-6.el5 has been submitted as an update for Fedora EPEL 5.
https://admin.fedoraproject.org/updates/mcollective-2.0.0-6.el5

Comment 6 Fedora Update System 2012-09-05 23:06:49 UTC
mcollective-2.0.0-6.fc18 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/mcollective-2.0.0-6.fc18

Comment 7 Steve Traylen 2012-09-06 18:42:08 UTC
Hi,
  Bugzilla was "sick" yesterday.

  Please ignore comment #2 

  After discussion and comparison to upstream client.cfg is now 0644.

Steve.

Comment 8 Fedora Update System 2012-09-07 11:33:37 UTC
Package mcollective-2.0.0-6.fc17:
* should fix your issue,
* was pushed to the Fedora 17 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing mcollective-2.0.0-6.fc17'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2012-13463/mcollective-2.0.0-6.fc17
then log in and leave karma (feedback).

Comment 9 Fedora Update System 2012-09-17 17:45:40 UTC
mcollective-2.0.0-6.fc17 has been pushed to the Fedora 17 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 10 Fedora Update System 2012-09-17 23:22:17 UTC
mcollective-2.0.0-6.fc18 has been pushed to the Fedora 18 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 11 Fedora Update System 2012-09-26 21:35:28 UTC
mcollective-2.0.0-6.el6 has been pushed to the Fedora EPEL 6 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 12 Fedora Update System 2012-09-26 21:36:43 UTC
mcollective-2.0.0-6.el5 has been pushed to the Fedora EPEL 5 stable repository.  If problems still persist, please make note of it in this bug report.