Mailinglist Archive: opensuse (1264 mails)

< Previous Next >
Re: [opensuse] konsole
On 2017-06-22 11:34, Dave Plater wrote:


On 18/06/2017 14:31, Anton Aylward wrote:
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
The only difference between su and su - is $USER is normal user for the
former and is root for the latter.

No, both commands change to "root" as given above. And with both you can
change to any user:

su john
su - john


--
Cheers / Saludos,

Carlos E. R.
(from 42.2 x86_64 "Malachite" at Telcontar)

< Previous Next >
This Thread