On Tue, 11 Dec 2018 23:26:33 +0000, A. Dumas wrote:
> Martin Gregorie wrote:
>> On Tue, 11 Dec 2018 22:27:51 +0000, A. Dumas wrote:
>>> Yes. However, effectively, Raspbian is a root-only OS because the
>>> standard user Pi doesn't need a password for sudo.
>>>
>> What version are you running?
>>
>> How recently updated?
>>
>> Mine, which has been running Stretch for some time, is always fully up
>> to date as of 'last Friday' because that is my offline backup + update
>> day for all my systems, Sudo always prompts for a password if it hasn't
>> been used for the last 5-3 minutes.
>>
>> Admittedly, while ago sudo stopped prompting for passwords. That might
>> have been when I upgraded to Stretch - I forget exactly when, but a
>> month or three later sudo got updated and since then has asked for a
>> password as you'd expect it to.
>
> Has always been the case from the very start of Raspberry Pi (Raspbian)
> until the latest versions. If it's different for you, you either changed
> it for user pi (and forgot about it?) or you are logged in as a
> different user.
That might explain the difference: I've never used the 'pi' user on mine
and never connected a keyboard or screen to it.
The first thing I did, immediately after getting SSH logins to work (mine
is a 2nd gen RPi B, so meant mounting its SD card on another Linux box,
configuring sshd to start on boot and assigning it a static IP) was to
set up a user with the same name as my normal login on my other machines
so that "ssh hostname", would work on the RPi the same as my other hosts.
--
Martin | martin at
Gregorie | gregorie dot org
--- SoupGate-Win32 v1.05
* Origin: Agency HUB, Dunedin - New Zealand | FidoUsenet Gateway (3:770/3)
|