setreuid man page on Tru64

Man page or keyword search:  
man Server   12896 pages
apropos Keyword Search (all sections)
Output format
Tru64 logo
[printable version]

setreuid(2)							   setreuid(2)

NAME
       setreuid - Set real and effective user IDs

SYNOPSIS
       #include <unistd.h>

       int setreuid(
	       uid_t ruid,
	       uid_t euid );

STANDARDS
       Interfaces  documented on this reference page conform to industry stan‐
       dards as follows:

       setreuid(): XSH4.2, XSH5.0

       Refer to the standards(5) reference page	 for  more  information	 about
       industry standards and associated tags.

PARAMETERS
       Specifies the new real user ID.	Specifies the new effective user ID.

DESCRIPTION
       The  setreuid()	function  sets	the real and effective user IDs of the
       current process to the values specified by the ruid  and	 euid  parame‐
       ters.  If  ruid or euid is -1, the corresponding effective or real user
       ID of the current process is not changed.

       Users may change the effective user ID to the real user ID;  only  pro‐
       cesses  with  superuser privilege may make other changes.  This task is
       normally done by the  system's  authentication  program	(for  example,
       login), but is not done for system daemons.

RETURN VALUES
       Upon successful completion, a value of 0 (zero) is returned. Otherwise,
       a value of -1 is returned and errno is set to indicate the error.

ERRORS
       The setreuid() function sets errno to the specified values for the fol‐
       lowing  conditions:  The value of the ruid or euid parameter is invalid
       or out of range.	 The current process is not the superuser and a change
       other than changing the effective user ID to the real user ID was spec‐
       ified.

SEE ALSO
       Functions: getuid(2), setgid(2), setregid(2), setruid(3)

       Standards: standards(5)

								   setreuid(2)
[top]
                             _         _         _ 
                            | |       | |       | |     
                            | |       | |       | |     
                         __ | | __ __ | | __ __ | | __  
                         \ \| |/ / \ \| |/ / \ \| |/ /  
                          \ \ / /   \ \ / /   \ \ / /   
                           \   /     \   /     \   /    
                            \_/       \_/       \_/ 
More information is available in HTML format for server Tru64

List of man pages available for Tru64

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