Linux forum

General discussion

Using --display arguement

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

Hi,

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 -
Link
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
icon
Computer Help 47,885 discussions
icon
Computer Newbies 10,322 discussions
icon
iPhones, iPods, & iPads 3,188 discussions
icon
Security 30,333 discussions
icon
TVs & Home Theaters 20,177 discussions
icon
HDTV Picture Setting 1,932 discussions
icon
Phones 15,713 discussions
icon
Windows 7 6,210 discussions
icon
Networking & Wireless 14,510 discussions

Big stars on small screens

Smosh tells CNET what it took to make it big online

Internet sensations Ian Hecox and Anthony Padilla discuss how YouTube has changed and why among all their goals, "real TV" isn't an ambition.