| Summary: | man: nologin(8) refers to /etc/nologin.txt, should refer to /var/run/nologin and /etc/nologin instead | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Lennart Poettering <lpoetter> |
| Component: | util-linux | Assignee: | Karel Zak <kzak> |
| Status: | CLOSED UPSTREAM | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | rawhide | CC: | jonathan, kzak, mluscon |
| 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: | 2014-01-13 10:59:05 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: | |
|
Description
Lennart Poettering
2013-09-29 16:35:15 UTC
Well, nologin is binary that is completely independent on PAM, so we have "man pam_nologin" and "man nologin". The command /usr/sbin/nologin really uses /etc/nologin.txt. The command is fedora specific. Yes, it's mess. I'm going to: * modify the command to use /var/run/nologin or /etc/nologin * fix the man page * move the command to util-linux upstream Oh, it also seems that we have two man pages: $ rpm -qf /usr/share/man/man8/nologin.8.gz /usr/share/man/man5/nologin.5.gz util-linux-2.22.2-7.fc18.x86_64 man-pages-3.43-2.fc18.noarch Now when I think about it seems that your request does not make sense :-) pam_nologin uses the files to prevents users from logging into the system when /var/run/nologin or /etc/nologin exists. The pam_nologin is global way how to disable all regular accounts (see 'grep nologin /etc/pam.d/*') /sbin/nologin is per account setting (in /etc/passwd) and it's replacement to account shell and /etc/nologin.txt is used for non-default message. It means you cannot replace /etc/nologin.txt with /etc/nologin, because /etc/nologin will disable all accounts (where UID!=0). Anyway, I'll merge nologin to utils-linux rather than maintain fedora specific implemenations and add note about pam_nologin to the man page. (In reply to Karel Zak from comment #3) > Anyway, I'll merge nologin to utils-linux rather than maintain fedora > specific implemenations and add note about pam_nologin to the man page. Done in f20 (upstream commit 88407b93212275759e8a54f5d43f4cf7da67fcdf). |