__gmon_start__ _init _fini __cxa_finalize _Jv_RegisterClasses PyStructSequence_New PyString_FromString PyInt_FromLong PyErr_Occurred _Py_NoneStruct PyList_New setspent getspent PyList_Append endspent PyArg_ParseTuple getspnam PyExc_KeyError PyErr_SetString initspwd Py_InitModule4 PyModule_AddObject PyStructSequence_InitType libc.so.6 _edata __bss_start _end GLIBC_2.1.3 GLIBC_2.0
s:getspnam getspnam(): name not found getspall spwd.struct_spwd sp_nam login name sp_pwd encrypted password sp_lstchg date of last change sp_min min #days between changes sp_max max #days between changes sp_warn sp_inact sp_expire sp_flag reserved #days before pw expires to warn user about it #days after pw expires until account is blocked #days since 1970-01-01 until account is disabled
@ 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 `
'): 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. getspnam(name) -> (sp_namp, sp_pwdp, sp_lstchg, sp_min, sp_max, sp_warn, sp_inact, sp_expire, sp_flag) Return the shadow password database entry for the given user name. See spwd.__doc__ for more on shadow password database entries. getspall() -> list_of_entries Return a list of all available shadow password database entries, in arbitrary order. See spwd.__doc__ for more on shadow password database entries. spwd.struct_spwd: Results from getsp*() routines. This object may be accessed either as a 9-tuple of (sp_nam,sp_pwd,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. > G @ X _ j q @ p
GCC: (GNU) 4.2.3 (Ubuntu 4.2.3-2ubuntu7) GCC: (GNU) 4.6.x-google 20120106 (prerelease) GCC: (GNU) 4.2.3 (Ubuntu 4.2.3-2ubuntu7)
.symtab .strtab .shstrtab .hash .dynsym .dynstr .gnu.version .gnu.version_r .rel.dyn .rel.plt .init .text .fini .rodata .eh_frame_hdr .eh_frame .ctors .dtors .jcr .dynamic .got .got.plt .data .bss .comment .debug_aranges .debug_info .debug_abbrev .debug_line .debug_ranges
initfini.c crtstuff.c __CTOR_LIST__ __DTOR_LIST__ __JCR_LIST__ __do_global_dtors_aux completed.5467 dtor_idx.5469 frame_dummy __CTOR_END__ __FRAME_END__ __JCR_END__ __do_global_ctors_aux spwdmodule.c mkspent StructSpwdType spwd_getspall spwd_getspnam spwd__doc__ spwd_methods initialized struct_spwd_type_desc spwd_getspnam__doc__ spwd_getspall__doc__ struct_spwd__doc__ struct_spwd_type_fields _GLOBAL_OFFSET_TABLE_ __x86.get_pc_thunk.bx __dso_handle __DTOR_END__ _DYNAMIC PyModule_AddObject initspwd __gmon_start__ _Jv_RegisterClasses _fini PyExc_KeyError getspnam@@GLIBC_2.0 PyArg_ParseTuple PyErr_Occurred PyString_FromString PyInt_FromLong getspent@@GLIBC_2.0 PyStructSequence_InitType endspent@@GLIBC_2.0 setspent@@GLIBC_2.0 __bss_start _Py_NoneStruct PyStructSequence_New PyList_Append Py_InitModule4 _end PyErr_SetString _edata PyList_New __cxa_finalize@@GLIBC_2.1.3 _init