Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 25 Jul 2008 17:51:48 +0530
From:      Subhro <subhro.kar@gmail.com>
To:        "Bill Moran" <wmoran@collaborativefusion.com>
Cc:        questions@freebsd.org
Subject:   Re: setuid not working on directories, or am I doing something wrong?
Message-ID:  <b2807d040807250521y702af5c1jd213b82b10d1d508@mail.gmail.com>
In-Reply-To: <20080725074526.8f7ae01a.wmoran@collaborativefusion.com>
References:  <20080725074526.8f7ae01a.wmoran@collaborativefusion.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Give me the output of 'mount' please.

Thanks
Subhro

On Fri, Jul 25, 2008 at 5:15 PM, Bill Moran
<wmoran@collaborativefusion.com> 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."



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?b2807d040807250521y702af5c1jd213b82b10d1d508>