On 2025-03-05 09:57:09 +0100, Marc Haber wrote:
> On Tue, Mar 04, 2025 at 03:23:17PM +0100, Vincent Lefevre wrote:
> > Well, I don't know whether a system account may have a password,
> > but this would still fail unexpectedly in such a case.
> > 
> > The adduser(8) man page says:
> > 
> >  "adduser --system" does not set a password for the new account.
> > 
> > but it seems that passwd(1) can set a password: its man page says
> > 
> >  while the superuser may change the password for any account.
> > 
> > If a password is forbidden for a system account, then this should
> > be enforced in passwd(1).
> 
> A password ist not forbidden for a system account. Are there any
> docs that suggest this prohibition?

I haven't found any, but I was surprised that adduser does not
allow one to set a password for system accounts (e.g. with an
option like --enabled-password, which would be the reverse of
the --disabled-password option).

-- 
Vincent Lefèvre <vinc...@vinc17.net> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / Pascaline project (LIP, ENS-Lyon)

Reply via email to