pwd — 口令数据库
pwd
grp
This module provides access to the Unix group database. It is available on all Unix versions.
可用性 :Unix,非 Emscripten,非 WASI。
Group database entries are reported as a tuple-like object, whose attributes correspond to the members of the group structure (Attribute field below, see <grp.h> ):
group
<grp.h>
索引
属性
含义
the (encrypted) group password; often empty
all the group member’s user names
The gid is an integer, name and password are strings, and the member list is a list of strings. (Note that most users are not explicitly listed as members of the group they are in according to the password database. Check both databases to get complete membership information. Also note that a gr_name that starts with a + or - is likely to be a YP/NIS reference and may not be accessible via getgrnam() or getgrgid() )。
gr_name
+
-
getgrnam()
getgrgid()
It defines the following items:
Return the group database entry for the given numeric group ID. KeyError is raised if the entry asked for cannot be found.
KeyError
3.10 版改变: TypeError is raised for non-integer arguments like floats or strings.
TypeError
Return the group database entry for the given group name. KeyError is raised if the entry asked for cannot be found.
Return a list of all available group entries, in arbitrary order.
另请参阅
An interface to the user database, similar to this.
spwd
An interface to the shadow password database, similar to this.
termios — POSIX 样式 tty 控制
termios
键入搜索术语或模块、类、函数名称。