From owner-freebsd-questions Fri Apr 5 13:49: 8 2002 Delivered-To: freebsd-questions@freebsd.org Received: from wolfhome.com (moses.wolfhome.com [216.254.101.201]) by hub.freebsd.org (Postfix) with SMTP id 1B3DE37B416 for ; Fri, 5 Apr 2002 13:49:04 -0800 (PST) Received: (qmail 7534 invoked by uid 1002); 5 Apr 2002 21:49:35 -0000 Received: from localhost (sendmail-bs@127.0.0.1) by localhost with SMTP; 5 Apr 2002 21:49:35 -0000 Date: Fri, 5 Apr 2002 15:49:35 -0600 (CST) From: Gre7g Luterman To: FreeBSD Mailing List Subject: Strange nosuid-like error Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 I set up my webserver back when I knew very little about FreeBSD (or Linux, for that matter). I'm not feeling like I know much now, but that is beside the point. Back when I set it up, I stupidly put everything in a single partition. The system has been running fine, but we keep bumping our heads on some sort of nosuid error. Here's the test I ran to verify what is (not) happening: $ ls -l test.* -rwsr-xr-x 1 root wheel 24 Apr 5 10:57 test.sh -r-x------ 1 root wheel 4 Apr 5 10:28 test.txt # cat test.txt It works! # cat test.sh #!/bin/sh cat test.txt $ ./test.sh cat: test.txt: Permission denied 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. 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 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!?! All help appreciated! Gre7g. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message