v7 man page for setuid

Query: setuid

OS: v7

Section: 2

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

SETUID(2)							System Calls Manual							 SETUID(2)

NAME
setuid, setgid - set user and group ID
SYNOPSIS
setuid(uid) setgid(gid)
DESCRIPTION
The user ID (group ID) of the current process is set to the argument. Both the effective and the real ID are set. These calls are only permitted to the super-user or if the argument is the real ID.
SEE ALSO
getuid(2)
DIAGNOSTICS
Zero is returned if the user (group) ID is set; -1 is returned otherwise.
ASSEMBLER
(setuid = 23.) (user ID in r0) sys setuid (setgid = 46.) (group ID in r0) sys setgid SETUID(2)
Related Man Pages
seteuid(2) - opendarwin
setuid(2) - opendarwin
seteuid(2) - netbsd
seteuid(2) - osx
setgid(2) - osx
Similar Topics in the Unix Linux Community
Changing effective user
Please explain setuid bit clearly!
How can I re-enable the setuid or setgid bits ???
Setuid not working in Linux as script fails to write to file.
Special File Permissions Setgid and setuid ..HELP