TIP: Click on subject to list as thread! ANSI
echo: rberrypi
to: RAY CARTER
from: LEW PITCHER
date: 2018-07-06 11:54:00
subject: Re: Login problem [correc

ray carter wrote:

>
>> I'm trying, first, to login to the pre-existing account pi.  Then I'm
>> trying to login to an account I've created.
>>
>
> You log into the 'pi' account and then (assuming the created user is
> 'peter' you do 'su peter' not 'login peter'.

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.

OTOH, he could also
  sudo login peter
and answer two password prompts (one for the root password, from sudo, and
one for "peter"s password, from login). This will also leave a shell running
as the "pi" user, and start a second shell as the "peter" user. However, it
will /add/ a utmp entry for the "peter" login, and who(1) will report both
"pi" and "peter" logged on. Like before, when the OP exit's the "peter"
shell, he will return to the "pi" shell.

Finally, the OP could just, at the console "Login" prompt, enter "peter"
instead of "pi", and respond to the "Password" prompt with peter's password,
and be logged in as "peter", without the intermediary "pi" login.

HTH
--
Lew Pitcher
"In Skills, We Trust"
PGP public key available upon request

--- 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™.