Bug 178233
| Summary: | gnome-screensaver gets confused when access to $HOME disappears | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Nalin Dahyabhai <nalin> | ||||
| Component: | gnome-screensaver | Assignee: | Ray Strode [halfline] <rstrode> | ||||
| Status: | CLOSED RAWHIDE | QA Contact: | |||||
| Severity: | medium | Docs Contact: | |||||
| Priority: | medium | ||||||
| Version: | rawhide | CC: | jmccann | ||||
| Target Milestone: | --- | ||||||
| Target Release: | --- | ||||||
| Hardware: | All | ||||||
| OS: | Linux | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2006-07-21 19:28:32 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: | |||||||
| Bug Depends On: | |||||||
| Bug Blocks: | 150223, 197822 | ||||||
| Attachments: | 
            
  | 
      ||||||
| 
 
        
          Description
        
        
          Nalin Dahyabhai
        
        
        
        
        
          2006-01-18 18:58:56 UTC
        
       
      
      
      
    Created attachment 123396 [details]
patch to fix the can't-chdir-to-homedir-so-I-give-up problem
    Nalin, I think this is fixed in rawhide by a different patch to GNOME CVS. Can you verify? 2.13.90-2 can exec the dialog, but the dialog hits this error (extracted from a
100+MB strace file, which I'll attach if you like):
17426 access("/afs/devel.redhat.com/users/nalin/.Xauthority", R_OK) = -1 EACCES
(Permission denied)
17426 writev(3, [{"l\0\v\0\0\0\0\0\0\0\0\0", 12}], 1) = 12
17426 fcntl64(3, F_GETFL)               = 0x2 (flags O_RDWR)
17426 fcntl64(3, F_SETFL, O_RDWR|O_NONBLOCK) = 0
17426 read(3, "\0\26\v\0\0\0\6\0", 8)   = 8
17426 read(3, "No protocol specified\n\36\10", 24) = 24
17426 write(2, "Xlib: connection to \":0.0\" refused by server\r\nXlib: ", 52) = 52
17426 write(2, "No protocol specified\n", 22) = 22
17426 write(2, "\r\n", 2)               = 2
17426 shutdown(3, 2 /* send and receive */) = 0
17426 close(3)                          = 0
17426 --- SIGSEGV (Segmentation fault) @ 0 (0) ---
    A possible solution to this might be to start the lock dialog ahead of time, and only raise it when it is needed. Filed upstream as http://bugzilla.gnome.org/show_bug.cgi?id=331191 On rstrode's suggestion, I logged in using GDM instead of login + startx, to see if GDM would detect that $HOME was in AFS, and in response move the .Xauthority file to a local disk. No such luck: XAUTHORITY is still set to "/afs/devel.redhat.com/users/nalin/.Xauthority". Not a blocker issue, since gdm can be configured to do the right thing, we don't support afs anyway (sorry, Nalin). At some point, we should probably look into making gdm do the right thing for afs out of the box. For anyone who's reading this, a workaround for the can't-access-Xauthority problem: xhost +SI:localuser:$USER beforehand (thanks to Adam Jackson, who pointed this out elsewhere). Add to FC6Destop tracker So X should deny you access just because you go offline or your credentials fail. I've changed gdm's default configuration to put Xauthority in a local directory. That should fix this problem. Hmm. I use "startx". Is there any chance that we can get the change from comment #7 made the default as well?  |