Home Man
Search
Today's Posts
Register

Linux & Unix Commands - Search Man Pages

Unix Version 7 - man page for setuid (v7 section 2)

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 argu-
       ment 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)


All times are GMT -4. The time now is 07:15 AM.

Unix & Linux Forums Content Copyrightę1993-2018. All Rights Reserved.
UNIX.COM Login
Username:
Password:  
Show Password