Page MenuHomeVyOS Platform

op-mode: "show system login users" uses spwd, removed in Python 3.13
Open, NormalPublic

Description

src/op_mode/show_users.py imports the spwd module to check whether an account is locked. spwd was deprecated by PEP 594 in Python 3.11 and removed in 3.13, so the command will fail with ImportError once the base system moves to a newer Python (Debian trixie ships 3.13).

Read /etc/shadow directly with the same locked-account semantics (* or !-prefixed hash). No other PEP 594 module is used in vyos-1x.

Details

Version
rolling
Is it a breaking change?
Unspecified (possibly destroys the router)
Issue type
Bug (incorrect behavior)