Hi Roberto

Thanks for the reply.

On Mon, Jun 1, 2020 at 4:38 AM Roberto Ragusa <m...@robertoragusa.it> wrote:
>
> On 2020-06-01 05:35, bruce wrote:
>
> > However, if I fire up a term as another user, and then from the
> > cmdline, fire up chromium, I get an err msg
> >
> > No protocol specified
> >   Gtk-WARNING **: cannot open display: :0
> >
> > I've been researching trying to figure out how to resolve this.
>
> The new user must have the EXPORT variable set to :0
>    export DISPLAY=:0
> but you probably already have it, given the error message above.
>
> The new user must also be authorized to connect to the X server,
> you have to run this as the OLD user, in your case it would be the
> (very unsafe) root user.
>    xhost si:localuser:thenameofthenewuser
>

I tried to implement your suggestion as follows:

logged in as root
in a "root" term window
echo $DISPLAY   (shows)
:0.0

xhost si:root:test

(generates)

root:test being added to access control list
X Error of failed request:  BadValue (integer parameter out of range
for operation)
  Major opcode of failed request:  109 (X_ChangeHosts)
  Value in failed request:  0x9
  Serial number of failed request:  7
  Current serial number in output stream:  9

which doesnt appear to "succeed"!

And yes, I know logging/running as root is "bad".

I'd still like to know how to resolve this issue, as opposed to just
saying don't do this.

thanks
_______________________________________________
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org

Reply via email to