From owner-freebsd-questions Wed Dec 6 16:25:54 1995 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id QAA11343 for questions-outgoing; Wed, 6 Dec 1995 16:25:54 -0800 (PST) Received: from buffnet4.buffnet.net (root@buffnet4.buffnet.net [205.246.19.13]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id QAA11314 for ; Wed, 6 Dec 1995 16:25:40 -0800 (PST) Received: from buffnet1.buffnet.net (mmdf@buffnet1.buffnet.net [205.246.19.10]) by buffnet4.buffnet.net (8.6.9/8.6.9) with SMTP id TAA15438 for ; Wed, 6 Dec 1995 19:27:52 -0500 Received: from buffnet9.buffnet.net by buffnet1.buffnet.net id aa16939; 6 Dec 95 19:28 EST Date: Wed, 6 Dec 1995 19:27:46 -0500 (EST) From: Stephen Hovey To: Barnacle Wes cc: questions@freebsd.org Subject: Re: SUID bits In-Reply-To: <199512062301.QAA19273@intele.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-questions@freebsd.org Precedence: bulk On Wed, 6 Dec 1995, Barnacle Wes wrote: > > I cannot get SUID to work on files in 2.1R. In other unixes I would > > chmod 4755 filename. > > > > I do here- I see the s - but when invoked it gives permission errors as > > though there were no suid bit set. > > > > Is there some other step that has to be done? > > Is the file you're trying to make suid on a filesystem that is mounted > nosuid? (This option did not exist in older unix systems.) not unless thats some new default - I even went into kern_exec.c and commented out the if statement which disables suid if the process is traced or mounted nosuid and it didnt help. I note also that if you drop a program into the general path (ie /usr/local/bin) the user doesnt see it till they log out and back in. Im wondering if it isnt a mmap issue.