From owner-freebsd-questions Fri Apr 5 13:54:40 2002 Delivered-To: freebsd-questions@freebsd.org Received: from chen.org.nz (adsl-210.54.19.51.quicksilver.net.nz [210.54.19.51]) by hub.freebsd.org (Postfix) with ESMTP id 78DD537B419 for ; Fri, 5 Apr 2002 13:54:35 -0800 (PST) Received: from grimoire.chen.org.nz (localhost [127.0.0.1]) by chen.org.nz (8.12.2/8.12.2) with ESMTP id g35LsNQm032239; Sat, 6 Apr 2002 09:54:23 +1200 (NZST) (envelope-from jonc@grimoire.chen.org.nz) Received: (from jonc@localhost) by grimoire.chen.org.nz (8.12.2/8.12.2/Submit) id g35LsNt3032238; Sat, 6 Apr 2002 09:54:23 +1200 (NZST) Date: Sat, 6 Apr 2002 09:54:23 +1200 From: Jonathan Chen To: Gre7g Luterman Cc: FreeBSD Mailing List Subject: Re: Strange nosuid-like error Message-ID: <20020406095423.A32154@grimoire.chen.org.nz> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: ; from gre7g@wolfhome.com on Fri, Apr 05, 2002 at 03:49:35PM -0600 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 On Fri, Apr 05, 2002 at 03:49:35PM -0600, Gre7g Luterman wrote: [...] > As you can see, test.sh is not doing the suid to root like I asked it to, > or it would have been able to read test.txt. The setuid bit does not work on shell scripts. This is true for all modern UNIX boxen. This is to prevent trivial security hacks. > What really puzzles me is that there is no nosuid in my /etc/fstab! > > $ cat /etc/fstab > # Device Mountpoint FStype Options Dump Pass# > /dev/ad0s1b none swap sw 0 0 > /dev/ad0s1a / ufs rw 1 1 > /dev/acd0c /cdrom cd9660 ro,noauto 0 0 > proc /proc procfs rw 0 0 What is the problem here? Everything looks fine. > Does anyone know what the heck is going on? Why can't programs > suid? What should I change in /etc/fstab? How do I remount /devv/ad0s1a > with the proper privileges? Is there anything I can do without > repartitioning!?! What are you trying to achieve? -- Jonathan Chen ---------------------------------------------------------------------- "Nyuck, nyuck, nyuck" - Curly To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message