look at the cut and paste sequence: cloc3@wlan0 ~ $ vncserver New 'X' desktop is wlan0:1 Starting applications specified in /home/cloc3/.vnc/xstartup Log file is /home/cloc3/.vnc/wlan0:1.log cloc3@wlan0 ~ $ cp `which vncserver ` . cloc3@wlan0 ~ $ diff `which vncserver` ./vncserver cloc3@wlan0 ~ $ ./vncserver New 'X' desktop is wlan0:2 Starting applications specified in /home/cloc3/.vnc/xstartup Log file is /home/cloc3/.vnc/wlan0:2.log cloc3@wlan0 ~ $ ps aux|grep vnc|grep -v grep cloc3 9395 9.4 1.1 25308 11680 pts/1 S 03:43 0:04 Xvnc :1 -desktop X -httpd /usr/share/tightvnc/classes -auth /home/cloc3/.Xauthority -geometry 1024x768 -depth 24 -rfbwait 120000 -rfbauth /home/cloc3/.vnc/passwd -rfbport 5901 -fp /usr/share/fonts/misc/,/usr/share/fonts/Type1/ -co /usr/share/X11/rgb -localhost cloc3 9442 52.5 1.1 25308 11628 pts/1 S 03:44 0:04 Xvnc :2 -desktop X -httpd /usr/share/tightvnc/classes -auth /home/cloc3/.Xauthority -geometry 1024x768 -depth 24 -rfbwait 120000 -rfbauth /home/cloc3/.vnc/passwd -rfbport 5902 -fp /usr/share/fonts/misc/,/usr/share/fonts/Type1/ -co /usr/share/X11/rgb Reproducible: Always Steps to Reproduce: Actual Results: the script vncserver, started by a normal user, forces the option -localhost. the same script, just copied in the home directory, doesn't. Expected Results: the option -localhost should be applied just if explicitly called, according with man Xvnc synopsys
sorry, it depends from me.