Mailinglist Archive: opensuse (1264 mails)

< Previous Next >
Re: [opensuse] konsole
On 18/06/17 07:23 AM, Patrick Shanahan wrote:
* Basil Chupin <blchupin@xxxxxxxxxxxx> [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


"su -" makes it "as if" a login, and that is what does the environment stuff,
including running .bash_profile.

You can see this explained in more detail on the man page for "su" and by
checking your settings in /etc/default/su, as well as the /root/.bash_profile
and /root/.bashrc


Try this:

For each of "su" and "su -"
run "env"
and look at
USER
PATH
MAIL
BASH_ENV
LOGNAME








--
A: Yes.
> Q: Are you sure?
>> A: Because it reverses the logical flow of conversation.
>>> Q: Why is top posting frowned upon?


--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse+owner@xxxxxxxxxxxx

< Previous Next >
This Thread