On 2017-06-18 14:31, Anton Aylward wrote:
On 18/06/17 07:23 AM, Patrick Shanahan wrote:
* Basil Chupin <blchupin@iinet.net.au> [06-17-17 23:57]:
Oh OK, but clarification please: what is meant by "as editor" -- what editor?
ah, we are talking about environment variables. the system default editor that is opened by other apps such as cron. start from a commandline and enter: env <enter>
and see
Ok, sut to the chase.
Running just "su" alone meremly changes your effective UID. By default, it is to root, but could to to another user. It does not alter HOME, SHELL, USER, LOGNAME, and PATH. That last one is important. A real root shell expects to have /sbin & /usr/sbin in the PATH HOME is also very important.
The home is not changed, so that files you write being root (or another user) are written in the user's home. It can thus happen that config files of the user become inaccessible to the user. -- Cheers / Saludos, Carlos E. R. (from 42.2 x86_64 "Malachite" at Telcontar)