On 06/19/2017 05:47 AM, Carlos E. R. wrote:
On 2017-06-18 14:31, Anton Aylward wrote:
On 18/06/17 07:23 AM, Patrick Shanahan wrote:
* Basil Chupin
[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.
Which is why you should use: "su -" to gain root powers. This way root created files end up in root's home directory. -- Ken Schneider SuSe since Version 5.2, June 1998 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org