Re: Do we need both /nonexistent and /var/empty in /etc/passwd?

From: Arthur Chance <freebsd_at_qeng-ho.org>
Date: Thu, 05 Dec 2024 09:02:48 UTC
On 05/12/2024 02:03, Dewayne Geraghty wrote:
>> You need to read hier(7).
>>
>> ;)
>>
>> ~Paul
>>
> 
> Thanks for the pointer.  I'd forgotten about that page <headslap>.
> 
> As I suspect its historical, I've deleted /var/empty and restarting
> services to see if its actually needed. It'll take a few days but so
> far, no impact.  If all ok, then I'll just sed /etc/master.passwd.
> Cheers.
> 

Grepping the source (REL-13 as that's what I'm on) shows that sshd uses
/var/empty as part of its privilege separation and fails if it can't
chroot there.

-- 
Although not designed for computation, PIO is quite likely Turing
complete, provided a long enough piece of tape can be found. It is
conjectured that it could run DOOM, given a sufficiently high clock
speed.  — The Raspberry Pi Pico datasheet on its PIO capability.