3 ms·
I am aware that the normal user account does not include /sbin, but `su` not adding it to PATH is different from previous releases to my knowledge. I am unsure
by charlesdaniels 7y ago
I am aware that the normal user account does not include /sbin, but `su` not adding it to PATH is different from previous releases to my knowledge.
I am unsure of why this is the default behavior, however.
- Crestwave 7y agoSimply `su` should not change the PATH; you have to start a login shell, as in `su -`.
- charlesdaniels 7y agoHuh. I guess I just never noticed that... normally I do `sudo su`, which I believe does update PATH.
- minitech 7y agosudo tip: `sudo -i`!
- fiddlerwoaroof 7y agoYeah, sudo su always annoys me: sudo -i if you want a login shell and sudo -s if you don’t (e.g. you cd-ed somewhere and forgot to become root, but don’t want to cd again because the path is long or you have done some complicated setup.
- thresh 7y ago"sudo su" is "launch su with superuser privileges", which is eh... weird to say the least. You probably wanted "sudo -i".
- _delirium 7y agoYes, this is a change from Debian 9, due to Debian switching which implementation of 'su' it uses, moving to the one used by most other distributions. NEWS entry with details: https://sources.debian.org/src/util-linux/2.33.1-0.1/debian/util-linux.NEWS/ https://sources.debian.org/src/util-linux/2.33.1-0.1/debian/...
- teddyh 7y agoWorking link, since sources.debian.org seems to be having problems at the moment: https://salsa.debian.org/debian/util-linux/blob/debian/2.33.1-0.1/debian/util-linux.NEWS https://salsa.debian.org/debian/util-linux/blob/debian/2.33....