Ns_Uid(3)

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).

  1. 3.1–4.0

From aolserver4 4.0.10-7 in Debian 4.0 (Etch). Parsed by carta from the page's man source.