Linux forum

General discussion

Using --display arguement

by lilsim89 / May 20, 2009 8:08 AM PDT


I'm running a command as a different user using sudo like this:

sudo -u user_progs /usr/bin/firefox --display=:0.0

But whenever I pass the "--display" argument, I get an error like:

No protocol specified OR

Error: cannot open display...

Am I missing something here?

Thanks a lot,

Simon S.

Post a reply
Discussion is locked
You are posting a reply to: Using --display arguement
The posting of advertisements, profanity, or personal attacks is prohibited. Please refer to our CNET Forums policies for details. All submitted content is subject to our Terms of Use.
Track this discussion and email me when there are updates

If you're asking for technical help, please be sure to include all your system info, including operating system, model number, and any other specifics related to the problem. Also please exercise your best judgment when posting in the forums--revealing personal information such as your e-mail address, telephone number, and address is not recommended.

You are reporting the following post: Using --display arguement
This post has been flagged and will be reviewed by our staff. Thank you for helping us maintain CNET's great community.
Sorry, there was a problem flagging this post. Please try again now or at a later time.
If you believe this post is offensive or violates the CNET Forums' Usage policies, you can report it below (this will not automatically remove the post). Once reported, our moderators will be notified and the post will be reviewed.
Collapse -
by white-bread / May 22, 2009 5:47 PM PDT

You need to link permissions

Collapse -
Well that's hardly any help.
by lilsim89 / May 24, 2009 6:44 PM PDT

I found the answer with some help and a little elbow grease.

Under the current user, before su-ing, you must enter the command:

"xauth local:"

(without the quotations, must be repeated upon reboot)

- Case closed.

Popular Forums
Computer Help 49,613 discussions
Computer Newbies 10,349 discussions
Laptops 19,436 discussions
Security 30,426 discussions
TVs & Home Theaters 20,308 discussions
Windows 10 360 discussions
Phones 15,802 discussions
Windows 7 7,351 discussions
Networking & Wireless 14,641 discussions


$16,000 used SUVs

Whether you like your SUVs cute or capable, or some blend of the two, we've got a wide variety of choices in Roadshow's first collection of Editors' Used Picks.