Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 28 Feb 2000 10:17:39 -0500 (EST)
From:      David Miller <dmiller@search.sparks.net>
To:        freebsd-hackers@FreeBSD.ORG
Subject:   group permissions question
Message-ID:  <Pine.BSF.4.21.0002281009540.11633-100000@search.sparks.net>

next in thread | raw e-mail | index | archive | help
Probably a simple question for the hackers in these parts...

I have a process which runs as root and is supposed to be started by
/usr/local/etc/rc.d/script.sh.  This process looks at a queue file, and a
table and decides to setuid to some user.  No great mysteries here....

If the process is started from the command line things work fine.  If it's
started from rc.d/script.sh, "id" reports participation in only the
primary group listed in the passwd database, not any of the groups it's a
member of in /etc/group.  IE, user "dist" has a primry group of "dist",
but is also listed under "www" in /etc/group.  When started at boot,
"id" only lists "dist" as member groups.

Am I neglecting some system call, expecting something unreasonable, or
just out in left field?

Thanks:)

--- David



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0002281009540.11633-100000>