From owner-freebsd-questions Tue Mar 11 17:51:27 2003 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 B9B8637B401 for ; Tue, 11 Mar 2003 17:51:26 -0800 (PST) Received: from hotmail.com (bay2-f72.bay2.hotmail.com [65.54.247.72]) by mx1.FreeBSD.org (Postfix) with ESMTP id 56FB743F75 for ; Tue, 11 Mar 2003 17:51:26 -0800 (PST) (envelope-from missive@hotmail.com) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Tue, 11 Mar 2003 17:51:26 -0800 Received: from 209.130.138.41 by by2fd.bay2.hotmail.msn.com with HTTP; Wed, 12 Mar 2003 01:51:25 GMT X-Originating-IP: [209.130.138.41] From: "Lee Harr" To: freebsd-questions@freebsd.org Subject: Re: suid shell script Date: Wed, 12 Mar 2003 01:51:25 +0000 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 12 Mar 2003 01:51:26.0226 (UTC) FILETIME=[E462DF20:01C2E839] 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 >There are a couple of scripts I use for my own convenience >that I ran setuid root I have one of those: my dialer script. What I did is create a short C wrapper: #include int main() { system("/root/bin/dial"); return 0; } Then I made that suid root. _________________________________________________________________ Tired of spam? Get advanced junk mail protection with MSN 8. http://join.msn.com/?page=features/junkmail To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message