Version: 2008
Advanced Search
advertisement
advertisement
Click Here

Forum display:

Linux: Using --display arguement

by lilsim89 - 5/20/09 3:08 PM
advertisement
Click Here
Post 1 of 3

Using --display arguement

by lilsim89 - 5/20/09 3:08 PM

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 2 of 3

Link

by white-bread - 5/23/09 12:47 AM In reply to: Using --display arguement by lilsim89

You need to link permissions

Post 3 of 3

Well that's hardly any help.

by lilsim89 - 5/25/09 1:44 AM In reply to: Using --display arguement by lilsim89

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.

Forum legend:
Locked Locked thread
Moderator Moderator
CNET staff CNET staff
Samsung staff Samsung staff
Norton Authorized Support team Norton Authorized Support team
AVG staff AVG staff
Windows Outreach team Windows Outreach team
Dell staff Dell staff
Intel staff Intel staff
Powered by Jive Software