Opening GUI as another user

Tez binary_y2k2 at blueyonder.co.uk
Tue Sep 19 17:52:17 UTC 2006


Dotan Cohen wrote:
> In addition to my regular user, I have created another user, "test",
> to test things. When I work as this user in Konsole, I cannot open GUI
> applications:
> dotancohen at ubuntu:~$ su - test
> Password:
> test at ubuntu:~$ kate
> kate: cannot connect to X server
> test at ubuntu:~$ gedit
> cannot open display: (null)
> Run 'gedit --help' to see a full list of available command line options.
> test at ubuntu:~$ firefox
>
> (firefox-bin:13339): Gtk-WARNING **: cannot open display:
> test at ubuntu:~$
>
> What can I do to have the user "test" open GUI apps from Konsole? Thanks.
>
> Dotan Cohen
> http://what-is-what.com
>
>   
Try using sudo instead of su, sudo normally preserves the environment
and DISPLAY settings. You can also use the command "xhost LOCAL:" to
open GUIs as a different user with su.

Tez






More information about the kubuntu-users mailing list