Ns_GetGid, Ns_GetUid, Ns_GetUserGid, Ns_GetUserHome
Get info about users and groups on Unix system
- Provided by: aolserver4-dev (Version: 4.5.1-18)
- Source: aolserver4
- Report a bug
Get info about users and groups on Unix system
#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)
Return the running server's Unix group id.
Return the running server's Unix user id.
Return the Unix group id for the given 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.
nsd(1), info(n)