From owner-freebsd-questions Tue Oct 2 0:20: 6 2001 Delivered-To: freebsd-questions@freebsd.org Received: from guru.mired.org (okc-65-31-203-60.mmcable.com [65.31.203.60]) by hub.freebsd.org (Postfix) with SMTP id D9BC237B406 for ; Tue, 2 Oct 2001 00:20:02 -0700 (PDT) Received: (qmail 8415 invoked by uid 100); 2 Oct 2001 07:20:02 -0000 From: Mike Meyer MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15289.27298.164718.385528@guru.mired.org> Date: Tue, 2 Oct 2001 02:20:02 -0500 To: "default" Cc: questions@freebsd.org Subject: Re: starting an app on another shell In-Reply-To: <122337642@toto.iv> X-Mailer: VM 6.90 under 21.1 (patch 14) "Cuyahoga Valley" 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 List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG default types: > Hi, > > one more question... I need to make a startup script to run an application > under a different user from boot... > > how could i do this? can i use su - username? :P Basically, yes. Add -c and then the command in quotes. You might exec the entire things to save a process. You might also check the things in /usr/local/etc/rc.d for examples. http://www.mired.org/home/mwm/ Q: How do you make the gods laugh? A: Tell them your plans. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message