From owner-freebsd-questions Thu Jan 11 9: 3: 3 2001 Delivered-To: freebsd-questions@freebsd.org Received: from guru.mired.org (okc-65-26-235-186.mmcable.com [65.26.235.186]) by hub.freebsd.org (Postfix) with SMTP id 5AD0A37B402 for ; Thu, 11 Jan 2001 09:02:46 -0800 (PST) Received: (qmail 24549 invoked by uid 100); 11 Jan 2001 17:02:45 -0000 From: Mike Meyer MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <14941.59189.861045.281196@guru.mired.org> Date: Thu, 11 Jan 2001 11:02:45 -0600 (CST) To: Gerd Knops Cc: questions@freebsd.org Subject: Re: Starting process as different user via rc In-Reply-To: <130130195@toto.iv> X-Mailer: VM 6.75 under 21.1 (patch 10) "Capitol Reef" XEmacs Lucid X-face: "5Mnwy%?j>IIV\)A=):rjWL~NB2aH[}Yq8Z=u~vJ`"(,&SiLvbbz2W`;h9L,Yg`+vb1>RG% *h+%X^n0EZd>TM8_IB;a8F?(Fb"lw'IgCoyM.[Lg#r\ Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Gerd Knops types: > 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. Use the "su" command in the script that's going to be run by root. Specify the command to be run with the "-c" option. Check the man page for more information. http://www.mired.org/home/mwm/ Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message