|
| static gid_t | gidFromName (const QString &name) |
| | Look up the numeric GID for a group name.
|
| |
| static uid_t | uidFromName (const QString &name) |
| | Look up the numeric UID for a user name.
|
| |
| static QString | nameFromGid (gid_t gid) |
| | Return the group name for a numeric GID.
|
| |
| static QString | nameFromUid (uid_t uid) |
| | Return the user name for a numeric UID.
|
| |
| static uid_t | currentUser () |
| | Return the UID of the process owner.
|
| |
| static QString | currentUserFullName () |
| | Return the full (display) name of the process owner.
|
| |
| static bool | isUserMemberOfGroup (uid_t uid, gid_t gid) |
| | Test whether a user is a member of a group.
|
| |
| static QString | currentUserName () |
| | Return the login name of the current user (cross-platform).
|
| |
UserUtil.
Some static helper methods for Linux users / groups
Stephen Punak, July 08 2019
Static helper methods for querying Unix user and group information.
POSIX-only methods are guarded by #ifndef __WIN32 and are unavailable on Windows.
Definition at line 24 of file userutil.h.