Skip to Main Content

Infrastructure Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

VNC - How to allow root access ?

807557Aug 21 2007 — edited Aug 21 2007
G-day

I am wondering how i can allow root acces to my VNC Server. I have followed the instructions below and have got a vncserver up and running. I can connect to the login screen from an external machine but when i enter u: root and my password, it comes back with, Not on system console, root login rejected.

Any ideas how i can allow a root login with vnc?



# Download RealVNC server package (Download & Use -> confirm form -> Find the latest Solaris package) (update: As of March 2007 there is no Solaris/x86 package available for download - it has been removed. I don't know why; it worked just fine for me. Try the Solaris Companion DVD's SFWvnc package instead - pkgadd -d /mnt/tmp/Solaris_Software_Companion/Solaris_i386/P ackages SFWvnc)
# Install package

pkgadd -d vnc-4_1_1-x86_solaris.pkg

# Add the 'vnc' service to /etc/services:

echo 'vnc 5900/tcp' >>/etc/services

# Convert and import the inetd configuration line to Solaris 10's new Service Management Framework:

echo 'vnc stream tcp nowait nobody /usr/local/bin/Xvnc Xvnc -inetd -query localhost -once securitytypes=none' >> vnc.inetd.conf
inetconv -i vnc.inetd.conf

(note, if using the Companion CD package, command is /opt/sfw/bin/Xvnc)

To later change the resolution of the spawned server, or any other options, change the exec property as follows:

inetadm -m network/vnc/tcp exec="/usr/local/bin/Xvnc -inetd -query localhost -once securitytypes=none -screen 0 1280x1024x16"

Then you can use inetadm to manage it:

inetadm -l svc:/network/vnc/tcp:default (show details - giving full service name)
inetadm -d network/vnc/tcp (disable - you can abbreviate the service name like this)
inetadm -e network/vnc/tcp (enable)

May be necessary to restart inetd:

svcadm restart inetd

# Connect to VNC port 5900 to see the desktop login!
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 18 2007
Added on Aug 21 2007
1 comment
3,315 views