TIP: Click on subject to list as thread! ANSI
echo: rberrypi
to: LEW PITCHER
from: AHEM A RIVET`S SHOT
date: 2018-07-06 19:19:00
subject: Re: Login problem [correc

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)

SOURCE: echomail via QWK@docsplace.org

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.