This object may be accessed either as a 9-tuple of (sp_namp,sp_pwdp,sp_lstchg,sp_min,sp_max,sp_warn,sp_inact,sp_expire,sp_flag) or via the object attributes as named in the above tuple.This module provides access to the Unix shadow password database. It is available on various Unix versions.
Shadow password database entries are reported as 9-tuples of type struct_spwd, containing the following items from the password database (see `<shadow.h>'): sp_namp, sp_pwdp, sp_lstchg, sp_min, sp_max, sp_warn, sp_inact, sp_expire, sp_flag. The sp_namp and sp_pwdp are strings, the rest are integers. An exception is raised if the entry asked for cannot be found. You have to be root to be able to use this module.getspall($module, /) --
Return a list of all available shadow password database entries, in arbitrary order.
See `help(spwd)` for more on shadow password database entries.getspnam($module, arg, /) --
Return the shadow password database entry for the given user name.