On Fri, 06 Jul 2018 11:54:33 -0400
Lew Pitcher wrote:
> That's one way to do it. That will leave a shell running as the "pi"
> user, and start a second shell as the "peter" user. It will not change
> the utmp, so who(1) will still report "pi" as logged on, and not "peter".
> If the OP wants the "peter" shell to use all the "peter" login settings
> (home directory, etc), the command should be
> su -l peter
> In either case, when the OP exit's the "peter" shell, he'll return to the
> "pi" shell.
To avoid that do
exec su -l peter
Which replaces pi's shell with peter's.
--
Steve O'Hara-Smith | Directable Mirror Arrays
C:\>WIN | A better way to focus the sun
The computer obeys and wins. | licences available see
You lose and Bill collects. | http://www.sohara.org/
--- SoupGate-Win32 v1.05
* Origin: Agency HUB, Dunedin - New Zealand | FidoUsenet Gateway (3:770/3)
|