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

  man pages->IRIX man pages -> seteuid (3c)              
Title
Content
Arch
Section
 

Contents


SETEUID(3C)							   SETEUID(3C)


NAME    [Toc]    [Back]

     seteuid, setruid, setegid,	setrgid	- set user and group IDs

SYNOPSIS    [Toc]    [Back]

     #include <unistd.h>

     int seteuid(uid_t euid);
     int setruid(uid_t ruid);

     int setegid(gid_t egid);
     int setrgid(gid_t rgid);

DESCRIPTION    [Toc]    [Back]

     seteuid (setegid) sets the	effective user ID (group ID) of	the current
     process.

     setruid (setrgid) sets the	real user ID (group ID)	of the current
     process.

     These calls are only permitted to the super-user or if the	argument is
     the real or effective ID.

DIAGNOSTICS    [Toc]    [Back]

     Zero is returned if the user (group) ID is	set.  Otherwise	-1 is returned
     and errno is set to EPERM if the caller is	not the	super-user and a
     disallowed	ID is used.

SEE ALSO    [Toc]    [Back]

      
      
     setreuid(2), setregid(2), setuid(2), setgid(2), getuid(2),	getgid(2).


									PPPPaaaaggggeeee 1111
[ Back ]
 Similar pages
Name OS Title
setruid FreeBSD set user and group ID
setegid NetBSD set user and group ID
seteuid NetBSD set user and group ID
setgid NetBSD set user and group ID
setruid NetBSD set user and group ID
setrgid NetBSD set user and group ID
setgid OpenBSD set user and group ID
seteuid OpenBSD set user and group ID
setegid OpenBSD set user and group ID
setuid NetBSD set user and group ID
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service