Ns_Uid3
Get info about users and groups on unix system
Usage
#include "ns.h" int Ns_GetGid(char *group) int Ns_GetUid(char *user) int Ns_GetUserGid(char *user) int Ns_GetUserHome(Ns_DString *pds, char *user)
Overview
Ns_GetGid(group)-
Return the running server's Unix group id.
Ns_GetUid(user)-
Return the running server's Unix user id.
Ns_GetUserGid(user)-
Return the Unix group id for the given user.
Ns_GetUserHome(pds, user)-
The Ns_GetUserHome function returns NS_TRUE and appends the user's home directory to the Ns_DString passed in, or it returns NS_FALSE if the user does not exist.
Keywords
Releases
Unchanged in 2 releases since Debian 3.1 (Sarge).