running an xorg application after a "su"

Asked by Nicolò Chieffo

Hello, I would like to run applications as different user than the one which is in the xorg session.
I'm using ubuntu maverick.

I do:
su - my_second_user

but when I try to run any command I get this (or similar) error.

$ firefox
No protocol specified
No protocol specified
Error: cannot open display: :0.0

$ nautilus
No protocol specified
Could not parse arguments: Cannot open display:

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu xorg Edit question
Assignee:
No assignee Edit question
Solved by:
actionparsnip
Solved:
Last query:
Last reply:
Revision history for this message
Best actionparsnip (andrew-woodhead666) said :
#1

http://ubuntuforums.org/showthread.php?t=590265

replace the word 'video' with your other username.

Revision history for this message
Nicolò Chieffo (yelo3) said :
#2

I also found another way:
install openssh and use ssh -X username@localhost