From owner-freebsd-questions Fri Apr 6 14:57:50 2001 Delivered-To: freebsd-questions@freebsd.org Received: from mail1.svr.pol.co.uk (mail1.svr.pol.co.uk [195.92.193.18]) by hub.freebsd.org (Postfix) with ESMTP id C22DD37B422 for ; Fri, 6 Apr 2001 14:57:32 -0700 (PDT) (envelope-from mickg@mickg.org) Received: from modem-9.adanedhel.dialup.pol.co.uk ([62.136.96.9] helo=doobrey) by mail1.svr.pol.co.uk with smtp (Exim 3.13 #0) id 14leEJ-00056V-00 for questions@freebsd.org; Fri, 06 Apr 2001 22:57:26 +0100 Message-ID: <000701c0bee5$037102a0$0200000a@home.gallaghernet.com> From: "Mick Gallagher" To: Subject: set-user-id question Date: Fri, 6 Apr 2001 23:00:01 +0100 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 5.00.2314.1300 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi All, Say I have a shell script, called egscript, say, and the content of the script is 'touch testfile'. Now if I run the script (all the execute permissions are set), then lo and behold, I find the file 'testfile' in the local directory. If I set the suid permissions, and someone else runs the file, no 'testfile' appears. Why is this the case? Does suid only work on binaries? What prevents others from running this script with my permissions? Thanks in advance. Mick Gallagher --- mickg@mickg.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message