Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #230375
| From | Greg Wooledge <wooledg@eeg.ccf.org> |
|---|---|
| Newsgroups | linux.debian.user |
| Subject | Re: [SOLUTION] Re: Bullseye: setting and using $DISPLAY after su - |
| Date | 2021-01-06 13:40 +0100 |
| Message-ID | <Buggx-10H-5@gated-at.bofh.it> (permalink) |
| References | (4 earlier) <Bskoi-17u-5@gated-at.bofh.it> <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> |
| Organization | linux.* mail to news gateway |
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. unicorn:~$ cat /etc/debian_version 10.7 unicorn:~$ dpkg -S /bin/su util-linux: /bin/su unicorn:~$ dpkg -l util-linux | tail -n1 ii util-linux 2.33.1-0.1 amd64 miscellaneous system utilities unicorn:~$ cat /etc/default/su ALWAYS_SET_PATH yes unicorn:~$ echo "$DISPLAY" :0 unicorn:~$ su Password: root@unicorn:/home/greg# echo "$DISPLAY" :0 root@unicorn:/home/greg# exit exit unicorn:~$ su - Password: root@unicorn:~# echo "$DISPLAY" root@unicorn:~# vi /etc/default/su root@unicorn:~# cat /etc/default/su # ALWAYS_SET_PATH yes root@unicorn:~# logout unicorn:~$ su Password: root@unicorn:/home/greg# echo "$DISPLAY" :0 root@unicorn:/home/greg# exit unicorn:~$ su - Password: root@unicorn:~# echo "$DISPLAY" root@unicorn:~# If someone is seeing DIFFERENT behavior than this, they have yet to demonstrate it for us.
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