Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #230386
| From | David Wright <deblis@lionunicorn.co.uk> |
|---|---|
| Newsgroups | linux.debian.user |
| Subject | Re: [SOLUTION] Re: Bullseye: setting and using $DISPLAY after su - |
| Date | 2021-01-06 17:30 +0100 |
| Message-ID | <BujR8-3cS-19@gated-at.bofh.it> (permalink) |
| References | (5 earlier) <BswIN-rB-1@gated-at.bofh.it> <BsxOy-16Y-15@gated-at.bofh.it> <Btxjs-6F4-17@gated-at.bofh.it> <Bu8M1-4FH-5@gated-at.bofh.it> <Buggx-10H-5@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Wed 06 Jan 2021 at 07:35:08 (-0500), Greg Wooledge wrote: > On Tue, Jan 05, 2021 at 10:38:39PM -0600, David Wright wrote: > > But here on debian-user, I was really more interested in why the value > > of DISPLAY was apparently changed by one su and not the other (or > > perhaps by both). The explanation, "probably with an alias for su", > > alias su="su -w DISPLAY", doesn't make any sense to me. Explanations? > > "su" will leave the DISPLAY variable intact, and "su -" will remove it. > I can see no evidence to the contrary, regardless of whether I'm using > the ALWAYS_SET_PATH config variable. > > The behavior is simple and consistent for me. And for me. The only difference from the output you posted is $ cat /etc/default/su cat: /etc/default/su: No such file or directory $ but that only affects PATH anyway. > If someone is seeing DIFFERENT behavior than this, they have yet to > demonstrate it for us. I thought the OP already had demonstrated it, in https://lists.debian.org/debian-user/2021/01/msg00000.html where we have: User's DISPLAY not revealed After su DISPLAY=:0.0 (exit) User's DISPLAY not revealed After su - DISPLAY=:0 As I pointed out, these values will both succeed in pointing to the same actual display (though I only tested that they both work on my own display, called ":0"). But they are textually "DIFFERENT", so they can't both be copied from the user's (unrevealed) value. So what I sought was an explanation of the OP's transcript, not that of yours and mine. Cheers, David.
Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Bullseye: setting and using $DISPLAY after su - Charles Curley <charlescurley@charlescurley.com> - 2020-12-31 23:00 +0100
Re: Bullseye: setting and using $DISPLAY after su - <tomas@tuxteam.de> - 2020-12-31 23:10 +0100
Re: Bullseye: setting and using $DISPLAY after su - Greg Wooledge <wooledg@eeg.ccf.org> - 2020-12-31 23:20 +0100
Re: Bullseye: setting and using $DISPLAY after su - Charles Curley <charlescurley@charlescurley.com> - 2021-01-01 01:50 +0100
Re: Bullseye: setting and using $DISPLAY after su - David Wright <deblis@lionunicorn.co.uk> - 2021-01-01 05:40 +0100
[SOLUTION] Re: Bullseye: setting and using $DISPLAY after su - Charles Curley <charlescurley@charlescurley.com> - 2021-01-01 18:50 +0100
Re: [SOLUTION] Re: Bullseye: setting and using $DISPLAY after su - <tomas@tuxteam.de> - 2021-01-01 20:00 +0100
Re: [SOLUTION] Re: Bullseye: setting and using $DISPLAY after su - Charles Curley <charlescurley@charlescurley.com> - 2021-01-01 22:30 +0100
Re: [SOLUTION] Re: Bullseye: setting and using $DISPLAY after su - Greg Wooledge <wooledg@eeg.ccf.org> - 2021-01-04 13:40 +0100
Re: [SOLUTION] Re: Bullseye: setting and using $DISPLAY after su - The Wanderer <wanderer@fastmail.fm> - 2021-01-04 13:50 +0100
Re: [SOLUTION] Re: Bullseye: setting and using $DISPLAY after su - Greg Wooledge <wooledg@eeg.ccf.org> - 2021-01-04 14:40 +0100
Re: [SOLUTION] Re: Bullseye: setting and using $DISPLAY after su - <tomas@tuxteam.de> - 2021-01-04 15:50 +0100
Re: [SOLUTION] Re: Bullseye: setting and using $DISPLAY after su - David Wright <deblis@lionunicorn.co.uk> - 2021-01-06 05:40 +0100
Re: [SOLUTION] Re: Bullseye: setting and using $DISPLAY after su - Greg Wooledge <wooledg@eeg.ccf.org> - 2021-01-06 13:40 +0100
Re: [SOLUTION] Re: Bullseye: setting and using $DISPLAY after su - David Wright <deblis@lionunicorn.co.uk> - 2021-01-06 17:30 +0100
Re: [SOLUTION] Re: Bullseye: setting and using $DISPLAY after su - Greg Wooledge <wooledg@eeg.ccf.org> - 2021-01-06 19:50 +0100
Re: Bullseye: setting and using $DISPLAY after su - Greg Wooledge <wooledg@eeg.ccf.org> - 2021-01-04 13:30 +0100
Re: Bullseye: setting and using $DISPLAY after su - Charles Curley <charlescurley@charlescurley.com> - 2021-01-04 19:20 +0100
Re: Bullseye: setting and using $DISPLAY after su - <tomas@tuxteam.de> - 2021-01-01 10:20 +0100
Re: Bullseye: setting and using $DISPLAY after su - Charles Curley <charlescurley@charlescurley.com> - 2021-01-01 02:00 +0100
Re: Bullseye: setting and using $DISPLAY after su - Mark Neyhart <Mark.Neyhart@akleg.gov> - 2021-01-01 04:10 +0100
csiph-web