[EMAIL PROTECTED] (Joerg Schilling) wrote:

> [EMAIL PROTECTED] wrote:
>
> >
> >
> > A simple truss command reveals that xscreensaver opens your DISPLAY with
> > an euid of 0:
> >
> > 15560:  execve("/usr/openwin/bin/xscreensaver", 0xFFBFEF3C, 0xFFBFEF44)  
> > argc = 1
> > 15560:      *** SUID: ruid/euid/suid = 21782 / 0 / 0  ***
> > 15560:  access("/home/casper/.Xauthority", R_OK)        = 0
> > 15560:  open("/home/casper/.Xauthority", O_RDONLY)      = 4
> > 15560:  getuid()                                        = 21782 [0]
> > 15560:  getuid()                                        = 21782 [0]
>
>
> And exactly because of this fact, it does not work.

In case you don't know what I am talking about, here is the correct truss 
output:

...
munmap(0xFE9E0000, 32768)                       = 0
access("/net/u/jes/.Xauthority", R_OK)          Err#13 EACCES   <--- This XXX
....
Xlib: connection to "write(2, " X l i b :   c o n n e c".., 21) = 21
:0.0write(2, " : 0 . 0", 4)                             = 4
" refused by server
Xlib: write(2, " "   r e f u s e d   b y".., 27)        = 27
No protocol specified
write(2, " N o   p r o t o c o l  ".., 22)      = 22


root is not allowed to open ~/.Xauthority because it is mode 0600,
this is the problem with xscreensaver.


Jörg

-- 
 EMail:[EMAIL PROTECTED] (home) Jörg Schilling D-13353 Berlin
       [EMAIL PROTECTED]                (uni)  
       [EMAIL PROTECTED]     (work) Blog: http://schily.blogspot.com/
 URL:  http://cdrecord.berlios.de/old/private/ ftp://ftp.berlios.de/pub/schily
_______________________________________________
opensolaris-discuss mailing list
opensolaris-discuss@opensolaris.org

Reply via email to