From owner-freebsd-questions Fri Jan 4 8:22: 2 2002 Delivered-To: freebsd-questions@freebsd.org Received: from chaos.evolve.za.net (chaos.evolve.za.net [196.34.172.107]) by hub.freebsd.org (Postfix) with ESMTP id 24BAC37B41C for ; Fri, 4 Jan 2002 08:21:56 -0800 (PST) Received: from DAVE ([192.168.0.56]) by chaos.evolve.za.net (8.11.6/1.1.3) with SMTP id g04GLkI71134 for ; Fri, 4 Jan 2002 18:21:49 +0200 (SAST) (envelope-from dave@kill-9.za.net) Message-ID: <001801c1953b$80e0a6a0$3800a8c0@DAVE> From: "Dave Raven" To: Subject: More SUID questions. Date: Fri, 4 Jan 2002 18:18:50 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 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 Hello all, I'm trying to get my sh script (with a goal of doing with perl) to run as root. I am probably doing it ALL wrong, but any help would be much appreciated. This is what I have so far: [root@order] ~ # uname -mrs FreeBSD 4.4-STABLE i386 [root@order] ~ # cat test.sh #!/bin/sh -p whoami echo "testtest" > /root/foo [root@order] ~ # ls -l test.sh -rwsr-xr-x 1 root wheel 49 Jan 4 18:18 test.sh [root@order] ~ # su phoenix su-2.05$ ./test.sh phoenix ./test.sh: cannot create /root/foo: permission denied What is it I'm doing wrong? Thanks again; Dave. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message