From owner-freebsd-hackers Mon Feb 28 7:17:50 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from search.sparks.net (search.sparks.net [208.5.188.60]) by hub.freebsd.org (Postfix) with ESMTP id 2327537B85A for ; Mon, 28 Feb 2000 07:17:48 -0800 (PST) (envelope-from dmiller@search.sparks.net) Received: by search.sparks.net (Postfix, from userid 100) id BDEEBDBB4; Mon, 28 Feb 2000 10:17:39 -0500 (EST) Received: from localhost (localhost [127.0.0.1]) by search.sparks.net (Postfix) with ESMTP id AE393DBB3 for ; Mon, 28 Feb 2000 10:17:39 -0500 (EST) Date: Mon, 28 Feb 2000 10:17:39 -0500 (EST) From: David Miller To: freebsd-hackers@FreeBSD.ORG Subject: group permissions question Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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