Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #236141

Re: xhost-command in Debian11

From <tomas@tuxteam.de>
Newsgroups linux.debian.user
Subject Re: xhost-command in Debian11
Date 2021-06-15 22:00 +0200
Message-ID <Cqno5-1AL-1@gated-at.bofh.it> (permalink)
References <CqmV3-1r6-9@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

On Tue, Jun 15, 2021 at 09:21:10PM +0200, BerndSchmittNews wrote:
> Hello.
> 
> I used to use xhost-command and su -l ... -c ... to run programs as a
> different user in debian10. In debian11 I get an error about having no
> DISPLAY env variable specified.
> 
> Does xhost work different now?

No. It's the su, dropping the DISPLAY environment variable. Try adding
the option `--whitelist-environment=DISPLAY to your su command (hint:
you can add more variables to that whitelist, comma separated).

HTH, cheers
 - t

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

xhost-command in Debian11 BerndSchmittNews <Bernd.Schmitt.News@gmx.net> - 2021-06-15 21:30 +0200
  Re: xhost-command in Debian11 <tomas@tuxteam.de> - 2021-06-15 22:00 +0200
    Re: xhost-command in Debian11 [solved] BerndSchmittNews <Bernd.Schmitt.News@gmx.net> - 2021-06-15 22:20 +0200
      Re: xhost-command in Debian11 [solved] tomas@tuxteam.de - 2021-06-15 22:40 +0200

csiph-web