22 Jun
2017
22 Jun
'17
11:10
On 2017-06-22 11:34, Dave Plater 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
On 18/06/2017 14:31, Anton Aylward wrote: 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)