From owner-freebsd-questions@FreeBSD.ORG Fri Jul 21 21:30:08 2006 Return-Path: X-Original-To: questions@freebsd.org Delivered-To: freebsd-questions@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 14E3A16A4DA for ; Fri, 21 Jul 2006 21:30:07 +0000 (UTC) (envelope-from dan@dan.emsphone.com) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9FF5B43D46 for ; Fri, 21 Jul 2006 21:30:05 +0000 (GMT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.13.1/8.13.4) id k6LLU4x4062052; Fri, 21 Jul 2006 16:30:04 -0500 (CDT) (envelope-from dan) Date: Fri, 21 Jul 2006 16:30:04 -0500 From: Dan Nelson To: Harlan Stenn Message-ID: <20060721213004.GB22820@dan.emsphone.com> References: <20060721210021.5F61539C75@ntp1.ntp.isc.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20060721210021.5F61539C75@ntp1.ntp.isc.org> X-OS: FreeBSD 5.5-PRERELEASE X-message-flag: Outlook Error User-Agent: Mutt/1.5.12-2006-07-14 Cc: questions@freebsd.org Subject: Re: ldconfig: /usr/X11R6/lib is group writable X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 21 Jul 2006 21:30:08 -0000 In the last episode (Jul 21), Harlan Stenn said: > I recently installed FreeBSD 6.1-STABLE on a machine, along with xorg > and gnome2. > > When the machine boots up and runs /etc/rc.d/ldconfig it generates a > message about how it is ignoring /usr/X11R6/lib because it is > group-writable. > > This means that xdm gives me a login screen but I cannot log in there > as libSM.so.6 cannot be found (it's in /usr/X11R6/lib). > > While I can "fix" the group perms manually, as soon as I run > portupgrade the mtree stuff puts the perms back to 775 on > /usr/X11R6/lib. /etc/mtree/BSD.x11.dist has everything marked 755, though, and a quick grep of /var/db/pkg/*/+MTREE_DIRS on my system only has one mode-775 directory ( /usr/X11R6/share/gnome/games ). My guess is that at some point, a port or manual install on your system chmod'ed X11R6/lib/, and every port installed after that recorded the wrong permissions in their mtree file. If "grep 775 /var/db/pkg/*/+MTREE_DIRS" lists a bunch of lines, you might be able to sed them back to normal with something like sed -i .bak -e 's/mode=0775/mode=0755/' /var/db/pkg/*/_MTREE_DIRS A hack until you get the permissions worked out would be to add ldconfig_insecure="yes" to /etc/rc.conf, which will make /etc/rc.d/ldconfig add the -i flag when it runs ldconfig. -- Dan Nelson dnelson@allantgroup.com