seteuid man page on HP-UX

Man page or keyword search:  
man Server   10987 pages
apropos Keyword Search (all sections)
Output format
HP-UX logo
[printable version]

seteuid(2)							    seteuid(2)

NAME
       seteuid(), setegid() - set effective user and group IDs

SYNOPSIS
DESCRIPTION
       sets  the effective user ID of the calling process, if euid is equal to
       the current real or saved user ID, or if the  process  has  appropriate
       privileges.  The real user ID and saved set-user-ID remain unchanged.

       sets the effective group ID of the calling process, if egid is equal to
       the current real or saved group ID, or if the process  has  appropriate
       privileges.   The  real group ID, saved set-group-ID and any supplemen‐
       tary group IDs remain unchanged.

RETURN VALUE
       Upon successful completion, and return 0; otherwise, they return −1 and
       set to indicate the error.

ERRORS
       and fail if any of the following conditions are encountered:

	      euid,	  or egid, is not a valid user or group ID.

	      The process does not have appropriate privileges and
			  euid/egid  does  not	match the real use/group ID or
			  the saved set-user-ID/set-group-ID.

AUTHOR
       and were developed by HP.

SEE ALSO
       exec(2), getegid(2), geteuid(2), getuid(2), setregid(2),	 setresgid(2),
       setresuid(2), setreuid(2), setuid(2).

STANDARDS CONFORMANCE
								    seteuid(2)
[top]

List of man pages available for HP-UX

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net