From owner-freebsd-questions Sat Nov 30 20:47:52 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6CEAE37B401 for ; Sat, 30 Nov 2002 20:47:51 -0800 (PST) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id D004F43ED1 for ; Sat, 30 Nov 2002 20:47:50 -0800 (PST) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.12.6/8.12.6) id gB14le1Y018422; Sat, 30 Nov 2002 22:47:40 -0600 (CST) (envelope-from dan) Date: Sat, 30 Nov 2002 22:47:40 -0600 From: Dan Nelson To: Kirk Bailey Cc: Andrew Prewett , freebsd-questions@FreeBSD.ORG Subject: Re: Run as owner Message-ID: <20021201044739.GD15972@dan.emsphone.com> References: <20021130162024.V47670-100000@slave.east.ath.cx> <3DE991FC.20200@netzero.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3DE991FC.20200@netzero.net> X-OS: FreeBSD 5.0-CURRENT X-message-flag: Outlook Error User-Agent: Mutt/1.5.1i 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 In the last episode (Nov 30), Kirk Bailey said: > This script is not perl, it is in python. So far the python community has > failed in the search for clue, possibly this one can assist? Sudo. You don't seem to be listening to anyone's responses. Perl, Python, /bin/shl, they're all the same. You need to put the setuid bit on the /executable*, not the script, or have another setuid program (like sudo) handle permissions then exec your script as the appropriate user. -- Dan Nelson dnelson@allantgroup.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message