TIP: Click on subject to list as thread! ANSI
echo: rberrypi
to: LEW PITCHER
from: PETER PERCIVAL
date: 2018-07-06 18:24:00
subject: Re: Login problem [correc

Lew Pitcher wrote:
> 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

What is the root password?  My expectation was that when I first logged
in as root I would be asked to nominate (and confirm) a password.  What
happens is, I'm asked for root's password and I don't know what it is.

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

Thank you.  Things are slowly becoming clearer!  I'd still like to know
root's password, even if I have no use for the root account.

>
> HTH
>

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