From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-14) on finch.gentoo.org X-Spam-Level: X-Spam-Status: No, score=-0.1 required=5.0 tests=DATE_IN_PAST_24_48, INVALID_DATE,MAILING_LIST_MULTI,NO_RELAYS autolearn=unavailable autolearn_force=no version=4.0.0 Received: from drobbins by cvs.gentoo.org with local (Exim 3.30 #1) id 15IjTw-000339-00 for gentoo-dev@cvs.gentoo.org; Fri, 06 Jul 2001 22:14:12 -0600 From: Daniel Robbins To: gentoo-dev@cvs.gentoo.org Subject: Re: [gentoo-dev] rc5 - /tmp has no sticky bit Message-ID: <20010706221412.A11694@cvs.gentoo.org> References: <20010706214545.356b26df.erichey2@home.com> <20010706215655.C10437@cvs.gentoo.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010706215655.C10437@cvs.gentoo.org>; from drobbins@gentoo.org on Fri, Jul 06, 2001 at 09:56:55PM -0600 Sender: gentoo-dev-admin@cvs.gentoo.org Errors-To: gentoo-dev-admin@cvs.gentoo.org X-BeenThere: gentoo-dev@cvs.gentoo.org X-Mailman-Version: 2.0 Precedence: bulk Reply-To: gentoo-dev@cvs.gentoo.org List-Help: List-Post: List-Subscribe: , List-Id: Gentoo Linux development list List-Unsubscribe: , List-Archive: Date: Fri Jul 6 22:15:03 2001 X-Original-Date: Fri, 6 Jul 2001 22:14:12 -0600 X-Archives-Salt: eee79529-e803-4a51-b523-2b80d7385d5e X-Archives-Hash: 34c1efacbb0777848fcdd59d562e061d On Fri, Jul 06, 2001 at 09:56:55PM -0600, Daniel Robbins wrote: > On Fri, Jul 06, 2001 at 09:45:45PM +0000, Collins Richey wrote: > > > 2) old habits die hard - you forgot to set the sticky bit for /tmp, but chmod > > 1777 /tmp did the trick. > > We have had the sticky bit set on /tmp (in the baselayout ebuild) for a very > long time. If your /tmp directory was created by the baselayout ebuild, then > your sticky bit should have been set too. Could you please try to track down > the cause of this problem, as it isn't a simple case of us forgetting to set > the sticky bit. OK; I think I've figured out the cause of the problem. What happens is that Portage will create the /tmp/portage directory if it doesn't exist, and uses 0755 perms for both. Since you built your system from scratch, Portage created /tmp/portage before baselayout could be built and merged, and thus the 1777 perms were not applied. The fix is for me to specifically check if ${ROOT}/tmp exists, and if not, create it with the sticky bit explicitly set. Thanks for the info you provided, as it helped me to track down the problem. Now to fix this in Portage... -- Daniel Robbins President/CEO http://www.gentoo.org Gentoo Technologies, Inc.