From owner-freebsd-questions Thu Jan 11 2: 7: 5 2001 Delivered-To: freebsd-questions@freebsd.org Received: from camelot.bitart.com (BITart-45.BITart.com [206.103.221.45]) by hub.freebsd.org (Postfix) with SMTP id 5B25D37B400 for ; Thu, 11 Jan 2001 02:06:46 -0800 (PST) Received: (qmail 15758 invoked by uid 101); 11 Jan 2001 10:06:44 -0000 Message-ID: <20010111100644.15757.qmail@camelot.bitart.com> Content-Type: text/plain MIME-Version: 1.0 (NeXT Mail 4.2mach v148) In-Reply-To: <20010111103440.G94930@d9168.upc-d.chello.nl> X-Nextstep-Mailer: Mail 4.2mach (Enhance 2.2p1) Received: by NeXT.Mailer (1.148) From: Gerd Knops Date: Thu, 11 Jan 2001 04:06:44 -0600 To: Edwin Groothuis Subject: Re: Starting process as different user via rc Cc: freebsd-questions@freebsd.org Reply-To: gerti-freebsdq@BITart.com References: <20010111082639.15646.qmail@camelot.bitart.com> <20010111103440.G94930@d9168.upc-d.chello.nl> Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Edwin Groothuis wrote: > On Thu, Jan 11, 2001 at 02:26:39AM -0600, Gerd Knops wrote: > > Is there a way (eg a small utility or some such) that would allow a > > process/script to be started from rc using a different UID than > > root? SUID would be a poor solution in the case I have in mind. > > You can use su for it I think: > > [/usr/home/edwin] root@kludge>su - www whoami > www > That should do nicely, thanks! Odd, using su never occurred to me in that context... Gerd To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message