[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Setting group ID



I think setgid(gid_t gid) is what you are after.

FYI, you can typically type man <function name> in much the same manner as
man <command name>.

SETGID(2)           Linux Programmer's Manual           SETGID(2)

NAME
       setgid - set group identity

SYNOPSIS
       #include <sys/types.h>
       #include <unistd.h>

       int setgid(gid_t gid)

DESCRIPTION
       setgid sets the effective group ID of the current process.
       If the caller is the superuser, the real and  saved  group
       ID's are also set.
       [snip]

	     -----------------------------------------------------
	     Richard H. Fifarek	       		rfifarek@silug.org
             -----------------------------------------------------

-
To unsubscribe, send email to majordomo@silug.org with
"unsubscribe silug-discuss" in the body.