Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Why can I only run vncserver/Xvnc as root?

run vncserver xvnc
0
10 Posted

Why can I only run vncserver/Xvnc as root?

0
10

The most likely reason for this is that Xvnc can’t create the unix domain socket (the path for this unix domain socket is usually /tmp/.X11-unix/Xn). Try making sure that users can write to this directory by making it world-writable, i.e. “chmod a+w /tmp/.X11-unix”. Note that to avoid a security loophole the “sticky bit” should also be set on the directory by doing “chmod o+t /tmp/.X11-unix”. If you don’t do this then someone else logged in to the same machine may be able to intercept the X protocol and thereby access your desktop and snoop on it, etc.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123