Bug 244807
Summary: | "who" doesn't show the logged in user | ||||||
---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise Linux 5 | Reporter: | uludwig <uta_ludwig> | ||||
Component: | xterm | Assignee: | Miroslav Lichvar <mlichvar> | ||||
Status: | CLOSED DUPLICATE | QA Contact: | |||||
Severity: | medium | Docs Contact: | |||||
Priority: | low | ||||||
Version: | 5.0 | CC: | meyering, sm, steve.cleveland | ||||
Target Milestone: | --- | ||||||
Target Release: | --- | ||||||
Hardware: | i686 | ||||||
OS: | Linux | ||||||
Whiteboard: | |||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2007-07-31 10:42:11 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
uludwig
2007-06-19 10:46:38 UTC
Created attachment 157359 [details]
small programm to read and print utmp
Thanks for the report. However, it sounds like you're reporting that who DOES accurately report the contents of the utmp file. If not, please include the output who prints along with the corresponding utmp/wtmp file. Have you read about xterm's -ls option? Someone reported a similar mismatch between their expectations and who's behavior. Here's the reply, in case it helps: http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10560/focus=10561 You are right. My report should be a different one. Sorry. More like: "No login information is written to utmp" If I login (gnome or kde or fvwm) this is not logged into utmp correctly. The corresponding entry appears if I open a gnome-terminal. But if I open a xterm no entry is made. Even if I launch xterm -ls there is no entry in the utmp file. I need to determine if a user is logged, who is logged in and if he is logged in to :0 or remotely. This used to work with previous versions of RH EL. It sounds like your problem is about the xterm program. It's a problem with xterm and utempter access permissions. The xterm binary needs setgid utempter to make utmp entries. *** This bug has been marked as a duplicate of 222847 *** This bug is marked as a duplicate of 222847, but I don't have permission to view that bug report, so I'm posting here. From past experience, logging into gnome should update utmp. That's where the problem is. It shouldn't require opening xterm or gnome-terminal. Also, of note, if I do 'strings /var/log/wtmp | grep <user>', I see the user listed. But 'strings /var/run/utmp | grep <user>', I don't see them listed. Steve, please file a bug report against a gnome component, this bug and bug #222847 is for xterm. I don't have permission to view 222847, this problem still exits on a fully updated RHEL5 client; setting group on the xterm-binary and making it sgid does not work (hey, I've even tried suid to root on the xterm binary without success - just like it used to be in the olden days:-) Since this bug has been closed, could someone with access to 222847 either open it for the rest of us or tell us what's going on? -Sigurd The updated package should be in RHEL 5.1. You can make the binary setgid utempter with: chown root:utempter /usr/bin/xterm chmod 2755 /usr/bin/xterm Thanks! :-) |