From owner-freebsd-questions Thu May 7 12:56:36 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id MAA19995 for freebsd-questions-outgoing; Thu, 7 May 1998 12:56:36 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from dt050n33.san.rr.com (@dt053nd2.san.rr.com [204.210.34.210]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id MAA19946 for ; Thu, 7 May 1998 12:56:03 -0700 (PDT) (envelope-from Studded@san.rr.com) Received: from san.rr.com (Studded@localhost [127.0.0.1]) by dt050n33.san.rr.com (8.8.8/8.8.8) with ESMTP id MAA00466; Thu, 7 May 1998 12:56:01 -0700 (PDT) (envelope-from Studded@san.rr.com) Message-ID: <355211D1.9804CEF3@san.rr.com> Date: Thu, 07 May 1998 12:56:01 -0700 From: Studded Organization: Triborough Bridge & Tunnel Authority X-Mailer: Mozilla 4.05 [en] (X11; I; FreeBSD 2.2.6-STABLE-0507 i386) MIME-Version: 1.0 To: djv@bedford.net CC: Kevin Rooney , freebsd-questions@FreeBSD.ORG Subject: Re: IRCU2 and rc.local References: <199805071655.MAA19700@castor.loco.net> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG CyberPeasant wrote: > > 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. Yes, your first method is definitely the way to go. NEVER EVER start an irc server as root, you're just *begging* to be hacked if you do. Doug -- *** Chief Operations Officer, DALnet IRC network *** *** Proud designer and maintainer of the world's largest Internet *** Relay Chat server with 5,328 simultaneous connections. *** Try spider.dal.net on ports 6662-4 (Powered by FreeBSD) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message