Folks, I tried to make vnc start as a non-root and I had little luck.
Could anyone please help me?
The script runs perfectly from interactive shell. but when I am running
it from rc.d, it comes out with the xauth not found in the path error.
The system is Solaris 8.
Thanks in advance,
Mike
#!/bin/sh
set -e
PATH=/bin:/usr/bin:/sbin:/usr/sbin:/opt/openwin/bin:/usr/local/bin
DAEMON=/usr/local/bin/vncserver
OPTIONS=" :2 -alwaysshared "
USER=mkhusid
HOME=/home/mkhusid
PIDFILE=/home/mkhusid/.vnc/alladin:2.pid
test -x $DAEMON || exit 0
startup () {
su $USER -c "$DAEMON $OPTIONS"
# startx refuses to run unless these are root:root
# but running vncserver as user jasonb creates those
# owned by him
chown -R root:root /tmp/.X2-lock
chown -R root:root /tmp/.X11-unix
chmod 1777 /tmp/.X11-unix
}
case "$1" in
start)
echo "Starting Hacked VNC Server Init: vncserver"
startup
echo "."
;;
_______________________________________________
VNC-List mailing list
[EMAIL PROTECTED]
http://www.realvnc.com/mailman/listinfo/vnc-list