Bug 788707
| Summary: | apcupsd initscript deletes /etc/nologin | ||
|---|---|---|---|
| Product: | [Fedora] Fedora EPEL | Reporter: | Howard Powell <hbp4c> |
| Component: | apcupsd | Assignee: | Michal Hlavinka <mhlavink> |
| Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | medium | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | el6 | CC: | mhlavink |
| Target Milestone: | --- | Keywords: | Reopened |
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | apcupsd-3.14.8-4.el6 | Doc Type: | Bug Fix |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2012-03-08 17:26:51 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Howard Powell
2012-02-08 20:57:40 UTC
apcupsd creates nologin file in some cases, that's the reason it cleans it up later. Otherwise users won't be able to log in after power failure reboot. It's designed to work this way by upstream and I'm not going to change this. Hi Michal - thank you for responding to my bug. A nologin file is automatically deleted by the system on reboot, there is no need to explicitly put it in the init file for apcupsd. The only thing that the rm -f /etc/nologin command in the init script is doing is reduce security and confuse overworked system administrators. Thank you again for looking at this. Perhaps a compromise would be to grep /etc/apcupsd/apcupsd.conf for the value of $NOLOGINDIR, and delete any nologin file within that directory. This limits the init script to the exact same behavior that the apcupsd program itself will generate and not conflict with anything a sysadmin is trying to do. Thanks again. Ok, we don't remove nologin in systemd and there was no complain ever, so it probably works fine with that. I'll remove that from init script. apcupsd-3.14.8-4.el6 has been submitted as an update for Fedora EPEL 6. https://admin.fedoraproject.org/updates/apcupsd-3.14.8-4.el6 Package apcupsd-3.14.8-4.el6: * should fix your issue, * was pushed to the Fedora EPEL 6 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=epel-testing apcupsd-3.14.8-4.el6' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-EPEL-2012-0411/apcupsd-3.14.8-4.el6 then log in and leave karma (feedback). apcupsd-3.14.8-4.el6 has been pushed to the Fedora EPEL 6 stable repository. If problems still persist, please make note of it in this bug report. |