Bug 25232
| Summary: | [patch] "Could not open lock file" | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Retired] Red Hat Linux | Reporter: | Tim Waugh <twaugh> | ||||
| Component: | kdebase | Assignee: | Bernhard Rosenkraenzer <bero> | ||||
| Status: | CLOSED RAWHIDE | QA Contact: | Aaron Brown <abrown> | ||||
| Severity: | medium | Docs Contact: | |||||
| Priority: | medium | ||||||
| Version: | 7.1 | Keywords: | Security | ||||
| Target Milestone: | --- | ||||||
| Target Release: | --- | ||||||
| Hardware: | i386 | ||||||
| OS: | Linux | ||||||
| Whiteboard: | Florence Gold | ||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2001-02-05 13:43:29 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
Tim Waugh
2001-01-29 22:46:46 UTC
Which service are you using to log in (login or kdm or gdm or xdm)? Can you strace the binary from another VT and determine what the error was? If the file exists, what are its permissions? This defect is considered MUST-FIX for Florence Gold release This was just a stale /var/lock/console.lock file I think. I removed that and now it works. Hmm, the same thing happened on another machine now. :-/ Okay, how-to-reproduce: In /etc/sysconfig/desktop, use KDE. Reboot the machine to clear out any old console.lock. Go to runlevel 5. Log in remotely to observe. In the remote terminal, verify that (for example) /dev/dsp is owned by root.root. Log on as a non-root user. Verify that /dev/dsp is owned by that user. Log out. /dev/dsp is still owned by the non-root user. This is looking at lot like bug 25048 now actually. *** This bug has been marked as a duplicate of 25048 *** Okay, 25048 is fixed, but this bug remains. Created attachment 9002 [details]
kdebase-pamexit.patch
The above patch fixes it for me. kdm was calling pam_close_session and setuid in the wrong order. Someone should check that this patch doesn't introduce any extra security problems, but I think it's fine (it's similar to what /bin/login does). Fixed, thanks for the patch. |