Re: running browser as user different than root

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Roberto

Thanks for the reply.

On Mon, Jun 1, 2020 at 4:38 AM Roberto Ragusa <mail@xxxxxxxxxxxxxxxx> 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@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
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@xxxxxxxxxxxxxxxxxxxxxxx



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux