On Thu, Feb 20, 2003 at 01:05:56AM +1100, Russell Shaw wrote:
> When a program access a config file, does it use the group ID of the
> programs own binary, or can it be set differently from within the
> program? Is there a way to check what group ID a program is using
> or going to use?

It will normally use the group of the user who runs it. It will only run
with the permissions of the group the executable belongs to if the
executable is setgid (something like "-rwxr-sr-x" in the permissions
column). If it's run as root (or if it's setuid root, something like
"-rwsr-xr-x") the executable can arbitrarily change its effective UID or
GID, though.

-- 
Michael Heironimus


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to