* S?ndor B?r?ny (bs@tud.at) [010916 07:32]: > My problem is the following: if I started kdm as user X and change to > user Y I have to use xhost + to be able to start xclock. (xhost > +localhost and the like is not enough.) But anyhow, I want to allow it > for the all users on the same machine permanently. I tried to put > localhost into /etc/kde2/kdm/Xaccess, /etc/X11/X0.hosts to no avail. There are better ways. You shouldn't be using 'xhost +', or even 'xhost +localhost'. Instead, you should be using xauth. To simplify things, search the archives for discussion of a 'sux' program that sets up the appropriate xauth stuff when you use it in place of su. Alternatively, you can use ssh with X forwarding to have it handle all the proper permissions transparently. Otherwise you can use xauth to effect this manually; see the manpage for details and an example. What you may find useful for allowing multiple users to be able to access the X server is to create a group with those users in it and an X authority file with g+r that can each user can 'xauth source' when logging in. There may be a cleaner way to effect this with kde2; I don't use it so I don't know. Sorry if that lecture wasn't really much help. -- Vineet http://www.anti-dmca.org Unauthorized use of this .sig may constitute violation of US law. echo Qba\'g gernq ba zr\! |tr 'a-zA-Z' 'n-za-mN-ZA-M'
Attachment:
pgpbwbatf2u2F.pgp
Description: PGP signature