Bug 1189203
| Summary: | No possibility to run saslauthd as non-root (ie as saslauth user) | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Petr Lautrbach <plautrba> | ||||
| Component: | cyrus-sasl | Assignee: | Jakub Jelen <jjelen> | ||||
| Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||
| Severity: | unspecified | Docs Contact: | |||||
| Priority: | unspecified | ||||||
| Version: | 21 | CC: | jjelen, milan.kerslager, plautrba, tmraz, vanmeeuwen+fedora | ||||
| Target Milestone: | --- | ||||||
| Target Release: | --- | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | cyrus-sasl-2.1.26-22.fc22 | Doc Type: | Bug Fix | ||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | 1188065 | Environment: | |||||
| Last Closed: | 2015-03-21 04:58:45 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: | |||||||
| Attachments: |
|
||||||
|
Description
Petr Lautrbach
2015-02-04 16:46:38 UTC
Created attachment 997564 [details]
documentation patch
Seems solved with dist git commit f85e1a3ecdaac1533d42f74556849f51fef3a853 (in cyrus-sasl-2.1.26-20).
We can't ship service configuration using user saslauth as default, because we have PAM mechanism as default. (it would be change, I know, but "safe default").
But at least I would be for mentioning this practice in
man saslauthd
and/or in its previous location
/etc/sysconfig/saslauthd
so the users can find how to do this.
I'd rather avoid putting documentation directly to sysconfig file. However, unit file could be changed to use GROUP and USER variables from /etc/sysconfig/saslauthd, e.g.: /etc/sysconfig/saslauthd ... # change this if you want to use another user for saslauthd service USER=root GROUP=root /usr/lib/systemd/system/saslauthd.service ... [Service] User=$USER Group=$GROUP Unfortunately, this doesn't work, because systemd is not evaluating environment variables in User and Group field. Additionally there is problem with SELinux caused by above mentioned commit (change ownership of /run/saslauthd/), which prevents daemon to start with root (going to revert it). So the resolution is documentation with checklist how to change it permanently and the /run/saslauth will have root:saslauth ownership to be accessible by both of the users. cyrus-sasl-2.1.26-21.fc22 has been submitted as an update for Fedora 22. https://admin.fedoraproject.org/updates/cyrus-sasl-2.1.26-21.fc22 Package cyrus-sasl-2.1.26-21.fc22: * should fix your issue, * was pushed to the Fedora 22 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing cyrus-sasl-2.1.26-21.fc22' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2015-3857/cyrus-sasl-2.1.26-21.fc22 then log in and leave karma (feedback). Package cyrus-sasl-2.1.26-22.fc22: * should fix your issue, * was pushed to the Fedora 22 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing cyrus-sasl-2.1.26-22.fc22' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2015-3857/cyrus-sasl-2.1.26-22.fc22 then log in and leave karma (feedback). cyrus-sasl-2.1.26-22.fc22 has been pushed to the Fedora 22 stable repository. If problems still persist, please make note of it in this bug report. |