To allow another user ID on the local system to access your display, use the si:localuser option of the xhost(1) command.
The following example shows how to configure your user account with the correct rights profile and run the SMF Services Visual Panels user interface.
Example 7 Allowing the root Account to Display GUIsuser@host:~$ xhost +si:localuser:root
user@host:~$ su
Password:
/**Visual Panel GUI**/
# /usr/bin/vp svcs
user@host:~$ xhost +si:localuser:root user@host:~$ echo $DISPLAY :11 user@host:~$ su Password: # export DISPLAY=:11 # /usr/bin/vp svcs
The :11 value will vary depending on each Sun Ray user session. Workstations, typically, have a :0 value on the main console display, but can have additional displays as well.
For more information, see the Xhost(1) man page.