From owner-freebsd-current@freebsd.org Wed Jul 29 10:28:42 2015 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 40B4C9AD91E for ; Wed, 29 Jul 2015 10:28:42 +0000 (UTC) (envelope-from ian.freislich@capeaugusta.com) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 1B6011B1A for ; Wed, 29 Jul 2015 10:28:42 +0000 (UTC) (envelope-from ian.freislich@capeaugusta.com) Received: by mailman.ysv.freebsd.org (Postfix) id 1A2509AD91D; Wed, 29 Jul 2015 10:28:42 +0000 (UTC) Delivered-To: current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 19B6A9AD91C for ; Wed, 29 Jul 2015 10:28:42 +0000 (UTC) (envelope-from ian.freislich@capeaugusta.com) Received: from mail-wi0-f173.google.com (mail-wi0-f173.google.com [209.85.212.173]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id ABCF81B19 for ; Wed, 29 Jul 2015 10:28:41 +0000 (UTC) (envelope-from ian.freislich@capeaugusta.com) Received: by wicgb10 with SMTP id gb10so193785225wic.1 for ; Wed, 29 Jul 2015 03:28:34 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references :mime-version:content-type:content-id:date:message-id; bh=ePo4nT0ZePQ5tTVuRNJFsdcJoeM8XvcQeTd8x/1zHCE=; b=A2jvIdB8HboCBL22pCIqKqtiDh25vs38UFPbbw9O7VqwJJ0d4jC8IzhTJR6/N6LbRy 3JDC/bMygmE8mwkGp9a4urZYqSwDfYVU7Cj/njHHt6m6UdITqX0Ln2KOfrxNUAER/Dx0 Hd3qmac1/pSM+2IiJ+pMcqmKm+jNdUFSrlfxshgLRE1Hbp+5H+6QtI6Tbzv9O1pqIcTt ckUiK9eE2lU6Xy3c7XUuLgsCnfQ6naW2ALWc907ZEqSmDllF7uJPQlt8CeBRch8NKS1s fkdIPoZhYsHX/mWfBQR+LdI2OuF33kv9BMu7m7XRByoioQDFbzQCUOmqNga18u8A3W6W +g5Q== X-Gm-Message-State: ALoCoQlacGIYnhPdWuTKuq/iVtOIyTqKUqUujsisTfXdfMmbyhltvLUdI8NuSvH7MmtmVuEecyrn X-Received: by 10.194.24.196 with SMTP id w4mr74667732wjf.137.1438165714175; Wed, 29 Jul 2015 03:28:34 -0700 (PDT) Received: from clue.co.za ([197.89.167.207]) by smtp.gmail.com with ESMTPSA id lz10sm37764926wjb.48.2015.07.29.03.28.32 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 29 Jul 2015 03:28:33 -0700 (PDT) From: Ian FREISLICH X-Google-Original-From: Ian FREISLICH Received: from localhost ([127.0.0.1] helo=zen) by clue.co.za with esmtp (Exim 4.85 (FreeBSD)) (envelope-from ) id 1ZKOb8-0001DX-Ho; Wed, 29 Jul 2015 12:28:30 +0200 To: Glen Barber cc: current@freebsd.org Subject: Re: "broken" symbolic links in /usr/lib In-Reply-To: <20150728205537.GA54478@FreeBSD.org> References: <20150728205537.GA54478@FreeBSD.org> <20150728200034.GO1277@albert.catwhisker.org> <20150728184516.GN1277@albert.catwhisker.org> X-Attribution: BOFH MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <4681.1438165710.1@zen> Date: Wed, 29 Jul 2015 12:28:30 +0200 Message-Id: X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Jul 2015 10:28:42 -0000 Glen Barber wrote: > On Tue, Jul 28, 2015 at 10:17:38PM +0200, Ian FREISLICH wrote: > > I found the actual problem. The mount point for /usr was mode 700 > > even though the root of the mounted filesystem on /usr was mode 755. > > Did I explain that clearly (quite difficult because two things are > > the same thing, although they're apparently not)? > > Your explanation makes sense to me. The cause of this, however is > unclear - was this something done locally? This is why I asked about > the permissions of '/lib', but based on what you've explained, even > asking for the permissions of '/usr' would not have led to a clear > answer. I think the cause was when I moved to an SSD in this laptop and created the filesystems on the new disk by hand. > So we're clear, '/usr' (unmounted) is 700, but '/usr' (mounted) is 755? > Or is this not the case? This is exactly the case. What's confusing is the inconsistent use of the '/usr' (unmounted) and '/usr' (mounted) modes depending on circumstance. ie, non-root can cd and ls to '/usr' (mounted), but not '/usr' (unmounted), but can't resolve a relative symlink in that path. Ian -- Ian Freislich