Oracle® Solaris 11.2 Desktop Administrator's Guide

Exit Print View

Updated: July 2014
 
 

Providing Other User Accounts With Access to Your Display

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 12-2  Allowing the root Account to Display GUIs
user@host:~$ xhost +si:localuser:root
user@host:~$ su 
Password: 

/**Visual Panel GUI**/
# /usr/bin/vp svcs

Note - If you use the su command to reset the environment variables, you will need to set the DISPLAY environment variable in the su session to match the DISPLAY variable set in the original user's environment.
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.