Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 23 Mar 2002 17:33:31 -0500
From:      Steve Shorter <steve@nomad.lets.net>
To:        Bjoern Engels <bjoern.engels@mail.isis.de>
Cc:        security@freebsd.org
Subject:   Re: strange behaviour on /tmp
Message-ID:  <20020323173331.A76680@nomad.lets.net>
In-Reply-To: <E16otir-000HR6-00@pumaman.dyndns.org>; from bjoern.engels@mail.isis.de on Sat, Mar 23, 2002 at 11:10:49PM %2B0100
References:  <20020323214535.Y212-100000@phoenix.vh.laserfence.net> <E16otir-000HR6-00@pumaman.dyndns.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, Mar 23, 2002 at 11:10:49PM +0100, Bjoern Engels wrote:
> > The mode 1777 turns on the sticky bit, hence, any write to /tmp is
> > created as the owner of /tmp.
> 
> 1777 means only the owner of a file can delete it. I bet /tmp
> has been set up 2777 or 3777 so all new files are being associated
> with the group /tmp belongs to (wheel).

	My experience with FreeBSD is that the "default" behavior
of directories is for files to have group ownership the same as
the directory they are created in. For example here is a brief
example


bash-2.05# mkdir testdir
bash-2.05# chown root:steve testdir
bash-2.05# >testdir/testfile
bash-2.05# ls -al
total 10
drwxr-xr-x   5 root     wheel     512 Mar 23 17:28 .
drwxr-xr-x  19 root     wheel     512 Jan 19 17:18 ..
drwxr-xr-x   2 root     steve     512 Mar 23 17:28 testdir
bash-2.05# ls -al testdir/
total 2
drwxr-xr-x  2 root  steve  512 Mar 23 17:28 .
drwxr-xr-x  5 root  wheel  512 Mar 23 17:28 ..
-rw-r--r--  1 root  steve    0 Mar 23 17:28 testfile


	Or what am I missing?


	-steve

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-security" in the body of the message




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