Uni/Passwd#
Interface to the passwd struct from <pwd.h>.
Info
To use declarations from this page, include the <essence/uni/passwd.hpp> header.
-
class uni::password#
Wrapper for the Unix
passwdC struct.-
uid_t uid() const noexcept#
Get the user id.
-
gid_t gid() const noexcept#
Get the group id.
-
std::string name() const#
Get the user’s username.
-
std::string pass() const#
Get the user password, typically
x, as the real password is often handled byshadow.
-
std::string gecos() const#
Get the
gecos(AKA the comment or real name) of the entry.
-
std::filesystem::path directory() const#
Get the directory of the entry.
-
std::string shell() const#
Get the entry’s shell.
-
std::string str() const#
Get a string representation of the
passwd, in the format returned bygetent
-
uid_t uid() const noexcept#