Date: Sat, 23 Mar 2002 23:10:49 +0100 From: Bjoern Engels <bjoern.engels@mail.isis.de> To: security@freebsd.org Subject: Re: strange behaviour on /tmp Message-ID: <E16otir-000HR6-00@pumaman.dyndns.org> In-Reply-To: <20020323214535.Y212-100000@phoenix.vh.laserfence.net> References: <20020323214535.Y212-100000@phoenix.vh.laserfence.net>
next in thread | previous in thread | raw e-mail | index | archive | help
On Saturday, 23. March 2002 20:46, Willie Viljoen wrote: >> I have /tmp mode 1777, and mounted like this in fstab: >> "/dev/something tmp ufs rw,nosuid,nodev=20 >> 2 2" >> >> The thing I am noticing is that all files created under /tmp get >> to be created as group wheel, no matter of the permissions of the >> directory they are created in, or the user that creates them. > > 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). Cheers Bjoern 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?E16otir-000HR6-00>