---------- Forwarded message ---------
De: Serge E. Hallyn <serge@hallyn.com>
Date: vie, 14 oct 2022 a las 17:56
Subject: Re: [Pkg-shadow-devel] Bug#1021745: passwd: /etc/passwd was edited
with the wrong shell path
To: Najib Bakari <najibbakari@gmail.com>
Cc: Serge E. Hallyn <serge@hallyn.com>
Right, you'd have to reset it after seeing the warning.
This isn't something that has recently changed, it's been like this
for 25 years.
I'm open to a patch that will accept a new /etc/login.defs variable to
affect this - it could, if set, simply refuse on unknown shell, or
ask "are sure". However, github.com/shadow-maint/shadow woudl be the
place for this. The debian package would simply make a change to
the debian/login.defs (if it wants) to set the default. Feel free to
create an issue or, better, submit a PR there :)
thanks,
-serge