From owner-freebsd-questions Fri Jan 4 9:17:52 2002 Delivered-To: freebsd-questions@freebsd.org Received: from yertle.kciLink.com (yertle.kcilink.com [216.194.193.105]) by hub.freebsd.org (Postfix) with ESMTP id E15B237B41D for ; Fri, 4 Jan 2002 09:17:42 -0800 (PST) Received: from onceler.kciLink.com (onceler.kciLink.com [216.194.193.106]) by yertle.kciLink.com (Postfix) with ESMTP id B11611E877 for ; Fri, 4 Jan 2002 12:17:36 -0500 (EST) Received: (from khera@localhost) by onceler.kciLink.com (8.11.6/8.11.6) id g04HHaq36139; Fri, 4 Jan 2002 12:17:36 -0500 (EST) (envelope-from khera) Date: Fri, 4 Jan 2002 12:17:36 -0500 (EST) Message-Id: <200201041717.g04HHaq36139@onceler.kciLink.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii From: Vivek Khera To: freebsd-questions@freebsd.org Subject: Re: Setuid. Newsgroups: ml.freebsd.questions References: <001b01c19476$c82f9d60$3800a8c0@DAVE> X-Trace: lorax.kciLink.com 1010162945 65822 216.194.193.106 (4 Jan 2002 16:49:05 GMT) X-Complaints-To: daemon@kciLink.com 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 >>>>> "DR" == Dave Raven writes: DR> Hello, DR> I need to run a perl program as root from the web (web user = nobody) DR> These are the permissions I have given the file: DR> -rwsr-xr-x 1 nobody nobody 1447 Jan 3 15:42 bwutil.pl DR> As a non root user: DR> su-2.05$ /usr/optec/bwutil.pl DR> Can't do setuid You need to ensure your suidperl is set-uid to root. The default is not. See /etc/default/make.conf to see how to make it so on rebuild, or just chmod u+s the suidperl binary. -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Vivek Khera, Ph.D. Khera Communications, Inc. Internet: khera@kciLink.com Rockville, MD +1-240-453-8497 AIM: vivekkhera Y!: vivek_khera http://www.khera.org/~vivek/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message