[ Previous | Next | Contents | Glossary | Home | Search ]
AIX Version 4.3 Base Operating System and Extensions Technical Reference, Volume 1

GetUserAuths Subroutine

Purpose

Accesses the set of authorizations of a user.

Library

Security Library (libc.a)

Syntax

#include <usersec.h>
char *GetUserAuths(void);

Description

The GetUserAuths subroutine returns the list of authorizations associated with the real user ID and group set of the process. By default, the ALL authorization is returned for the root user.

Return Values

If successful, the GetUserAuths subroutine returns a list of authorizations associated with the user. The format of the list is a series of concatenated strings, each null-terminated. A null string terminates the list. Otherwise, a null pointer is returned and the errno global variable is set to indicate the error.


[ Previous | Next | Contents | Glossary | Home | Search ]