GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  SETRUID (3)

NAME

setruid, setrgid - set user and group ID

CONTENTS

Library
Synopsis
Description
Return Values
Compatibility
Errors
See Also
History

LIBRARY


.Lb libc

SYNOPSIS


.In unistd.h int setruid uid_t ruid int setrgid gid_t rgid

DESCRIPTION

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

RETURN VALUES


.Rv -std

COMPATIBILITY

The use of these calls is not portable. Their use is discouraged; they will be removed in the future.

ERRORS

The functions fail if:
[EPERM]
  The user is not the super user and the ID specified is not the real or effective ID.

SEE ALSO

getgid(2), getuid(2), setegid(2), seteuid(2), setgid(2), setuid(2)

HISTORY

The setruid and setrgid syscalls appeared in BSD 4.2 and were dropped in BSD 4.4 .
Search for    or go to Top of page |  Section 3 |  Main Index


Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.