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

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


getdfltprojuser(3c)					   getdfltprojuser(3c)

NAME    [Toc]    [Back]

     getdfltprojuser, fgetdfltprojuser - get user's default project ID

SYNOPSIS    [Toc]    [Back]

     #include <proj.h>

     prid_t getdfltprojuser(const char *name);

     prid_t fgetdfltprojuser(PROJ token, const char *name);

DESCRIPTION    [Toc]    [Back]

     The getdfltprojuser function searches the project file for	the user name
     and returns the first project ID associated with that user.  The first
     project in	a user's project entry is considered to	be their default
     project for the purposes of login and similar situations.

     The fgetdfltprojuser function is a	variant	of getdfltprojuser that	uses a
     PROJ token	to make	it more	efficient for repeated use.  Otherwise its
     operation is identical.  For more details on creating a PROJ token, see

FILES    [Toc]    [Back]

     /etc/project   System project authorization file.

     /etc/projid    System project name	to project ID mappings.

SEE ALSO    [Toc]    [Back]

     closeproj(3C), getprojall(3C), getprojuser(3C), openproj(3C),
     validateproj(3C), projid(4), projects(5).

DIAGNOSTICS    [Toc]    [Back]

     getdfltprojuser and fgetdfltprojuser both return the appropriate project
     ID	if successful, or -1 if	not.

BUGS    [Toc]    [Back]

     Both functions use	fopen(3S) and are thus subject to its limitations.

     Project information should	be (optionally)	obtained via NIS.

									PPPPaaaaggggeeee 1111
[ Back ]
 Similar pages
Name OS Title
validateproj IRIX validate a project name for a user
useradd Linux Create a new user or update default new user information
edquota IRIX edit user or project quotas
sgi_getclearancebyname IRIX get the default and allowed mac label range for a named user
sgi_getcapabilitybyname IRIX get the default and allowed capability sets for a named user
projid IRIX project name to project ID mapping file
cd_defs Tru64 sets or gets default values for the User or Group ID, or for file or directory permissions
setprid IRIX set project ID
getprid IRIX get project ID
c++ NetBSD GNU project C++ Compiler
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service