From owner-freebsd-questions Thu Jan 3 8:56:56 2002 Delivered-To: freebsd-questions@freebsd.org Received: from void.xpert.com (xpert.com [199.203.132.1]) by hub.freebsd.org (Postfix) with ESMTP id EFD1937B419 for ; Thu, 3 Jan 2002 08:56:52 -0800 (PST) Received: from mailserv.xpert.com ([199.203.132.135]) by void.xpert.com with esmtp (Exim 3.22 #1) id 16MB55-0002MB-00; Thu, 03 Jan 2002 18:51:03 +0200 Received: by mailserv.xpert.com with Internet Mail Service (5.5.2650.21) id ; Thu, 3 Jan 2002 18:56:31 +0200 Message-ID: From: Yonatan Bokovza To: 'Dave Raven' , "'freebsd-questions@freebsd.org'" Subject: RE: Setuid. Date: Thu, 3 Jan 2002 18:56:29 +0200 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: text/plain; charset="iso-8859-1" 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 > -----Original Message----- > From: Dave Raven [mailto:dave@kill-9.za.net] > Sent: Thursday, January 03, 2002 18:51 > To: freebsd-questions@FreeBSD.org > Subject: Setuid. > > > Hello, > I need to run a perl program as root from the web (web > user = nobody) > These are the permissions I have given the file: > -rwsr-xr-x 1 nobody nobody 1447 Jan 3 15:42 bwutil.pl > > As a non root user: > su-2.05$ /usr/optec/bwutil.pl > Can't do setuid The permission on that file should be: -rwsr-xr-x 1 root nobody 1447 Jan 3 15:42 bwutil.pl But running SUID-root files from web is a Bad Thing(tm). Try not to do that. > I'm sure there must be a better way to do this, but if > not how should I > proceed? > > Thanks, > Dave. > OpteqSec. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message