Documentation ¶
Index ¶
Constants ¶
View Source
const EtcPasswd = "/etc/passwd"
Variables ¶
This section is empty.
Functions ¶
func FindHomeByNameInPasswd ¶
FindHomeByNameInPasswd finds the home directory of a user by the user's name in an /etc/passwd file.
func FindHomeByUIDInPasswd ¶
FindHomeByUIDInPasswd finds the home directory of a user by the user's uid in an /etc/passwd file.
func FindUIDByNameInPasswd ¶
FindUIDByNameInPasswd finds the UID of a user by name in an /etc/passwd file. It can also find the GID of a group by name in an /etc/group file.
func FindUIDByNameInPasswdReader ¶
FindUIDByNameInPasswdReader finds the UID of a user by name in a stream encoded like the contents of /etc/passwd. It can also find the GID of a group by name in a stream encoded like the contents of /etc/group.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.