failed to bind listener, etc.
Peter C. Tribble
ptribble "at" hgmp.mrc.ac.uk
Thu, 11 Nov 1999 15:04:11 +0000
Dan Fulbright <linux "at" fan.com> asked:
>>>So, what should the permissions be on /tmp/.X11-unix? (BTW, the "u" should
>>>be lower case.) Mine are drwxrwxrwx, which you say is bad. I'm guessing
>>>I did this a long time ago when I first started using VNC, and I don't
>>>remember what the perms were before. (I'm not too worried, since my only
>>>other user is my wife. :)
Well, the permissions should be (this is Solaris 7, current patches)
drwxrwxr-x 2 root root 104 Nov 9 10:35 /tmp/.X11-unix/
and the X server (OpenWindows in this case, but you set Xvnc to be the same)
-rwxr-sr-x 1 root root 957300 Sep 17 22:23 /usr/openwin/bin/Xsun*
Then /tmp/.X11-unix is not world-writeable (so that users can't delete
or replace the files therein - the sticky bit is completely ineffective
as the files themselves are writeable). It's writeable by group root, so
that as Xsun is setgid root it has write access to the directory, so
you need to make Xvnc setgid root as well.
[The group doesn't have to be root. In Solaris 2.5.1, for instance, it's
group bin instead. And patches can change the group ownership and even,
in the case of some of the less well tested Solaris patches, remove the
setgid bits.]
If you have xdm or dtlogin running then they'll start Xsun as root at boot
time and you end up with the permissions above.
-Peter Tribble
HGMP Computing Services
http://www.hgmp.mrc.ac.uk/~ptribble/
---------------------------------------------------------------------
The VNC mailing list - see http://www.uk.research.att.com/vnc/intouch.html
---------------------------------------------------------------------