Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #245227
| From | Klaus Singvogel <deb-user-ml@singvogel.net> |
|---|---|
| Newsgroups | linux.debian.user |
| Subject | Re: addendum, Re: One-user system. |
| Date | 2022-02-11 15:50 +0100 |
| Message-ID | <DPFpf-164h-3@gated-at.bofh.it> (permalink) |
| References | <DPuDv-ZBX-1@gated-at.bofh.it> <DPuNb-ZF1-3@gated-at.bofh.it> |
| Organization | private |
Greg Wooledge wrote: > On Thu, Feb 10, 2022 at 06:37:04PM -0800, peter@easthope.ca wrote: > > root@joule:~# su peter > > peter@joule:~$ firefox-esr --display=:0 > > Invalid MIT-MAGIC-COOKIE-1 keyUnable to init server: Could not connect: Connection refused > > Error: cannot open display: :0 > > > > peter, logged in directly, can run firefox. > > root, logged in directly, can run firefox. > > The above is from a security mechanism in firefox? > > No, you simply haven't provided enough credentials to the X server. > It's the X server who's rejecting connections from "peter", because > "peter" has not presented the correct MIT-MAGIC-COOKIE (auth token). A different solution, with less security, especially on multi-user system might be: enable access for a specific user by "xhost". In your case, do before "su peter", as user root: xhost +si:localuser:peter This prevents the X server security mechanism, which Greg explains. Beaware, it's more dangerous, opening it X this way. Best regards, Klaus. -- Klaus Singvogel GnuPG-Key-ID: 1024R/5068792D 1994-06-27
Back to linux.debian.user | Previous | Next — Previous in thread | Find similar | Unroll thread
addendum, Re: One-user system. peter@easthope.ca - 2022-02-11 04:20 +0100
Re: addendum, Re: One-user system. Greg Wooledge <greg@wooledge.org> - 2022-02-11 04:30 +0100
Re: addendum, Re: One-user system. Charles Curley <charlescurley@charlescurley.com> - 2022-02-11 05:50 +0100
Re: addendum, Re: One-user system. Greg Wooledge <greg@wooledge.org> - 2022-02-11 13:40 +0100
Re: addendum, Re: One-user system. <tomas@tuxteam.de> - 2022-02-11 14:00 +0100
Re: addendum, Re: One-user system. Charles Curley <charlescurley@charlescurley.com> - 2022-02-11 17:50 +0100
Re: addendum, Re: One-user system. Klaus Singvogel <deb-user-ml@singvogel.net> - 2022-02-11 15:50 +0100
csiph-web