Bug 636036
| Summary: | systemd doesn't set utmp entries for tty processes | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Petr Lautrbach <plautrba> | ||||
| Component: | systemd | Assignee: | Lennart Poettering <lpoetter> | ||||
| Status: | CLOSED UPSTREAM | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||
| Severity: | urgent | Docs Contact: | |||||
| Priority: | low | ||||||
| Version: | rawhide | CC: | cdahlin, lakshmipathi.g, lpoetter, metherid, mschmidt, notting, plautrba, pvrabec, tmraz | ||||
| Target Milestone: | --- | ||||||
| Target Release: | --- | ||||||
| Hardware: | All | ||||||
| OS: | Linux | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | 632568 | Environment: | |||||
| Last Closed: | 2010-10-08 14:07:55 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: | |||||||
| Attachments: |
|
||||||
|
Description
Petr Lautrbach
2010-09-21 11:27:55 UTC
Why is this cloned against systemd? # ls -l /sbin/init lrwxrwxrwx. 1 root root 14 Sep 21 12:47 /sbin/init -> ../bin/systemd # rpm -q systemd systemd-10-3.fc15.x86_64 # cat /etc/security/limits.conf test hard maxlogins 2 login and logout user test on tty1, login and logout user test on tty2, login user test on tty3: Sep 22 08:51:04 rawhide-systemd login: pam_limits(login:session): Too many logins (max 2) for test Sep 22 08:51:04 rawhide-systemd login: pam_unix(login:session): session opened for user test by LOGIN(uid=0) Sep 22 08:51:04 rawhide-systemd login: Permission denied # w 08:52:33 up 5 min, 3 users, load average: 0.08, 0.08, 0.04 USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT root ttyS0 - 08:49 0.00s 0.14s 0.05s w Created attachment 448863 [details]
utmp dump after too many logins
Tools like pam, w, destop switch user, ... use utmp table to discover information who is currently logged, see utmp(5). systemd should at least set DEAD_PROCESS for utmp entries with already dead tty processes to avoid this issue. Fixed now upstream. |