Opening GUI as another user

Karl Goetz kamping_kaiser at
Wed Sep 20 07:31:48 UTC 2006

Ian Rose wrote:
> 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
try something like 'gksu -u test' or 'kdesu -u test' (i'm not srue about 
paramters). afaik this is what they exist for  :)

>> (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.
> If you are running sshd on the machine you can log in using
> ssh -X localhost -l username
> -X allows x-forwarding - normally you would do this to a seperate  
> machine, but there is nothing to stop you doing it on your local machine.

Karl Goetz
The buck stops there -> $
Australian Ubuntu users team -

More information about the kubuntu-users mailing list