From owner-freebsd-questions@FreeBSD.ORG Mon Jul 21 20:50:46 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2C8D537B404 for ; Mon, 21 Jul 2003 20:50:46 -0700 (PDT) Received: from hotmail.com (sea1-f31.sea1.hotmail.com [207.68.163.31]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7870E43FBD for ; Mon, 21 Jul 2003 20:50:45 -0700 (PDT) (envelope-from gs_stoller@hotmail.com) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Mon, 21 Jul 2003 20:50:45 -0700 Received: from 205.184.163.16 by sea1fd.sea1.hotmail.msn.com with HTTP; Tue, 22 Jul 2003 03:50:44 GMT X-Originating-IP: [205.184.163.16] X-Originating-Email: [gs_stoller@hotmail.com] From: "Gerald S. Stoller" To: freebsd-questions@freebsd.org Date: Mon, 21 Jul 2003 23:50:44 -0400 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 22 Jul 2003 03:50:45.0259 (UTC) FILETIME=[6E079DB0:01C35004] Subject: set user-id X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Jul 2003 03:50:46 -0000 FreeBSD 4.3-RELEASE FreeBSD 4.3-RELEASE #0: Sat Apr 21 10:54:49 GMT 2001 jkh@narf.osd.bsdi.com:/usr/src/sys/compile/GENERIC i386 As root, I made a text file (named t ) that did something like echo $USER | tee xx and then had it set user-id (I did 'chmod 4755 t'). As a plain user, I made a directory that only root can write my current directory and then invoked t (by giving a path-name to it). It reported that the USER was the plain user and couldn't write into the directory. It appears that the set user-id didn't work, but I also checked t with ls -l and the permissions were rwsr-xr-x , exactly like that of passwd and xterm (except maybe for the write permission of the owner). How do I get set user-id to work? _________________________________________________________________ Help STOP SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail