From owner-freebsd-questions@FreeBSD.ORG Fri Jul 25 12:47:16 2008 Return-Path: Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AF1D51065679 for ; Fri, 25 Jul 2008 12:47:16 +0000 (UTC) (envelope-from subhro.kar@gmail.com) Received: from wa-out-1112.google.com (wa-out-1112.google.com [209.85.146.183]) by mx1.freebsd.org (Postfix) with ESMTP id 7701C8FC19 for ; Fri, 25 Jul 2008 12:47:16 +0000 (UTC) (envelope-from subhro.kar@gmail.com) Received: by wa-out-1112.google.com with SMTP id j4so1832999wah.3 for ; Fri, 25 Jul 2008 05:47:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=aIF2c/vzjVCkzJ54r/VOFQ1paRJV27BwR09XXqQe3wE=; b=upX0G72xNYW2zoRzSciSIC9MW8JeKDyAmGvpdUF5TOHUl6qVSs8GlYhfzz5yvJo/eY oC8KF3DPofLnjN5L+OvUYPTAeNjrbqQoZkr8XrSkiOq2+jBIQeI1P1HExzeo0MutoVMf kINBU1sxyeLG5/XpTNOcU9ze1rF4eUC2n1co0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=dWRGyt5pD/obi46Ip2/m1gzPzedb75vwLEzFAy60Ernky7Wcq0LqSqWzpNYZq8jiCP ZGht1/9ZoceoGXpQwWSf11bKpYi+95UW4rQgoIg42d2tNV2Y9nrkHt6axPewhuwyIwPB xEkmoHEbIidazfgDXdv6MW0k3HkjbXe75NQZM= Received: by 10.114.177.1 with SMTP id z1mr1751198wae.226.1216988508275; Fri, 25 Jul 2008 05:21:48 -0700 (PDT) Received: by 10.114.15.4 with HTTP; Fri, 25 Jul 2008 05:21:48 -0700 (PDT) Message-ID: Date: Fri, 25 Jul 2008 17:51:48 +0530 From: Subhro To: "Bill Moran" In-Reply-To: <20080725074526.8f7ae01a.wmoran@collaborativefusion.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20080725074526.8f7ae01a.wmoran@collaborativefusion.com> Cc: questions@freebsd.org Subject: Re: setuid not working on directories, or am I doing something wrong? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 Jul 2008 12:47:16 -0000 Give me the output of 'mount' please. Thanks Subhro On Fri, Jul 25, 2008 at 5:15 PM, Bill Moran wrote: > > $ whoami > wmoran > $ mkdir test2 > $ sudo chown daemon:daemon test2 > $ sudo chmod 6777 test2 > $ ls -lah | grep test2 > drwsrwsrwx 2 daemon daemon 512B Jul 25 07:40 test2 > $ touch test2/testfile.empty > $ ls -lah test2 > total 8 > drwsrwsrwx 2 daemon daemon 512B Jul 25 07:41 . > drwxr-xr-x 59 wmoran wheel 6.0K Jul 25 07:40 .. > -rw-r--r-- 1 wmoran daemon 0B Jul 25 07:41 testfile.empty > > Shouldn't testfile.empty show up as daemon:daemon? or am I > misunderstanding something about how setuid works? > > This is on FreeBSD 7, but I observe the same thing on 6.3 and 6.2. > > -- > Bill Moran > Collaborative Fusion Inc. > http://people.collaborativefusion.com/~wmoran/ > > wmoran@collaborativefusion.com > Phone: 412-422-3463x4023 > > **************************************************************** > IMPORTANT: This message contains confidential information and is > intended only for the individual named. If the reader of this > message is not an intended recipient (or the individual > responsible for the delivery of this message to an intended > recipient), please be advised that any re-use, dissemination, > distribution or copying of this message is prohibited. Please > notify the sender immediately by e-mail if you have received > this e-mail by mistake and delete this e-mail from your system. > E-mail transmission cannot be guaranteed to be secure or > error-free as information could be intercepted, corrupted, lost, > destroyed, arrive late or incomplete, or contain viruses. The > sender therefore does not accept liability for any errors or > omissions in the contents of this message, which arise as a > result of e-mail transmission. > **************************************************************** > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" > -- WC Fields - "A rich man is nothing but a poor man with money."