From owner-freebsd-questions Thu May 7 10:13:41 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id KAA21268 for freebsd-questions-outgoing; Thu, 7 May 1998 10:13:41 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from castor.loco.net (lucy.bedford.net [206.99.145.54]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id KAA21254 for ; Thu, 7 May 1998 10:13:28 -0700 (PDT) (envelope-from listread@bedford.net) Received: (from listread@localhost) by castor.loco.net (8.8.8/8.8.8) id MAA19700; Thu, 7 May 1998 12:55:53 -0400 (EDT) (envelope-from listread) Message-Id: <199805071655.MAA19700@castor.loco.net> Subject: Re: IRCU2 and rc.local In-Reply-To: from Kevin Rooney at "May 7, 98 07:52:26 am" To: Kevin_Rooney@sw.cc.va.us (Kevin Rooney) Date: Thu, 7 May 1998 12:55:53 -0400 (EDT) Cc: freebsd-questions@FreeBSD.ORG Reply-to: djv@bedford.net From: CyberPeasant X-Mailer: ELM [version 2.4ME+ PL38 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Kevin Rooney wrote: > It seems the IRCU2 server will only start with setuid someone other than > root. How do I write rc.local to automatically change the user who starts > it at startup time? Two ways: su username -c "command to be executed by shell" or make ircu2 suid to the user in question. As root, do: chown username.usergroup name-of-executable chmod u+s name-of-executable. The latter method may break things, and introduce unanticipated problems, especially relating to security. Try the first method, and see how it works. Dave -- <----. mail-to: djv@bedford.net <----|=================================== <----' Zber Qnrzbaf, Srjre Qrivyf! To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message