From owner-freebsd-questions Wed Dec 12 3:50:59 2001 Delivered-To: freebsd-questions@freebsd.org Received: from topaz.mdcc.cx (topaz.mdcc.cx [212.204.230.141]) by hub.freebsd.org (Postfix) with ESMTP id 52DB637B416 for ; Wed, 12 Dec 2001 03:50:53 -0800 (PST) Received: from k7.mavetju.org (topaz.mdcc.cx [212.204.230.141]) by topaz.mdcc.cx (Postfix) with ESMTP id 4E0EC2B78C; Wed, 12 Dec 2001 12:50:49 +0100 (CET) Received: by k7.mavetju.org (Postfix, from userid 1001) id BECCA30C; Wed, 12 Dec 2001 22:50:42 +1100 (EST) Date: Wed, 12 Dec 2001 22:50:42 +1100 From: Edwin Groothuis To: rshea@opendoor.co.nz Cc: freebsd-questions@freebsd.org Subject: Re: What's this task running as ? Message-ID: <20011212225042.E724@k7.mavetju.org> Mail-Followup-To: Edwin Groothuis , rshea@opendoor.co.nz, freebsd-questions@freebsd.org References: <3C17E5E1.20927.DAAB0C@localhost> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <3C17E5E1.20927.DAAB0C@localhost>; from rshea@opendoor.co.nz on Wed, Dec 12, 2001 at 11:18:57PM +1300 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Wed, Dec 12, 2001 at 11:18:57PM +1300, rshea@opendoor.co.nz wrote: > Hi - In my inetd.conf I've got ... > > cvspserver stream tcp nowait root /usr/local/bin/cvs cvs --allow-root=/usr/local/newrepos pserver > > .... I'm not expert but I thought this meant that when data arrives at the port > associated with cvspserver then cvs should be run under the userid root. > > However in an O'Reilly book I have to hand it says that "the cvs server runs > briefly as root" - how can I find out what user it runs as once it stops > running as root ? It's not visible via ps as it starts, does whatever is > necessary and then stops. I think it will set the uid to the one of the user logged in via CVS. Sounds what like what it should be doing :-) Edwin -- Edwin Groothuis | Personal website: http://www.MavEtJu.org edwin@mavetju.org | Interested in MUDs? Visit Fatal Dimensions: ------------------+ http://www.FatalDimensions.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message