*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->IRIX man pages -> sgi_getcapabilitybyname (3c)              



NAME    [Toc]    [Back]

     sgi_getcapabilitybyname - get the default and allowed capability sets for
     a named user

SYNOPSIS    [Toc]    [Back]

     #include <capability.h>

     struct user_cap *sgi_getcapabilitybyname(const char *name);

DESCRIPTION    [Toc]    [Back]

     Return the	default	and allowed capability sets for	the user name.	The
     routine uses the NIS map capability.byname	if NIS is active, otherwise it
     uses the local capabilities file, /etc/capability.

RETURN VALUES    [Toc]    [Back]

     The routine returns a pointer to an allocated struct user_cap. This
     structure and its components (cap->ca_name, cap->ca_default and cap-
     >ca_allowed) have been allocated by the routine with malloc(3c) and
     should be released	with free(3c) when no longer needed.

     If	errors are encountered,	or the specified user name could not be	found,
     NULL is returned.

ERRORS    [Toc]    [Back]

     ENOSYS	     capabilities are not enabled.

SEE ALSO    [Toc]    [Back]


									PPPPaaaaggggeeee 1111
[ Back ]
 Similar pages
Name OS Title
sgi_getclearancebyname IRIX get the default and allowed mac label range for a named user
cd_defs Tru64 sets or gets default values for the User or Group ID, or for file or directory permissions
acl_delete_def_file IRIX delete the default ACL for a named directory
useradd Linux Create a new user or update default new user information
chcap IRIX change file capability sets
capability IRIX user capability database
SSL_CTX_set_def_verify_paths Tru64 Sets default file path and file name of trusted CA certificate
pxfchmod IRIX Sets file modes for a named file
cap_copy_ext IRIX copy capability from system to user space or from user to system space
pxfsetuid IRIX Sets user ID
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service