From owner-freebsd-questions@FreeBSD.ORG Thu Feb 19 22:24:19 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2549D106566C for ; Thu, 19 Feb 2009 22:24:19 +0000 (UTC) (envelope-from alexmiroslav@gmail.com) Received: from mail-gx0-f176.google.com (mail-gx0-f176.google.com [209.85.217.176]) by mx1.freebsd.org (Postfix) with ESMTP id A66478FC1B for ; Thu, 19 Feb 2009 22:24:18 +0000 (UTC) (envelope-from alexmiroslav@gmail.com) Received: by gxk24 with SMTP id 24so2254752gxk.19 for ; Thu, 19 Feb 2009 14:24:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=ElSdoprIKHf4g0EIhLhEpokms5W+SG9/NHN0dxAzmN0=; b=fWRxdahr0iTxR7ED9vAGmsvKeZX5NZb3vGThRJQKI8ulc+0WTH9h1B7ZdkbXLsdvEB +vbF9zk5FNv9NzRnLHNvT0OFRR9wZJ/wjJgqgYQjFgoyr0V0gXAnsbH1uDUooDm/Cuob tMZaHk3xCrauP155i07FN36jPrp/ZLvIK+RZc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=QoLAQed3Cjj+wOQAU+mzvai5fD0b8vhoWWLP3aJItx7RO6HlVbcdLDdkq1mBPZMwno oh0D4VCsIM9/2k76AWxWi7dgxfje2Wg1MhcsYiUOF+7vERO0DXg8W/3IT1H1KWmOGB1i Uz2/NCbEwGAV5HwgrhWe4HuVphrh8nZ6btSIQ= MIME-Version: 1.0 Received: by 10.100.255.10 with SMTP id c10mr125137ani.26.1235080612583; Thu, 19 Feb 2009 13:56:52 -0800 (PST) Date: Thu, 19 Feb 2009 16:56:51 -0500 Message-ID: <9fa4f0760902191356s7297d7b0ycac7ff0a885efd1f@mail.gmail.com> From: Aleksandr Miroslav To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: weird permissions on directories when installing ports through sudo 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: Thu, 19 Feb 2009 22:24:19 -0000 For the longest time, I have installed ports via the "sudo make install" or "sudo portupgrade" or "sudo portinstall" method and never had a problem. Recently, as of a few weeks ago, I started noticing that ports that were installed or upgraded were getting the wrong permissions. Not only were directories getting permissions of 700 (whereas previously they had been 755), but the directories /usr/local and entries in /var/db/pkg were getting permissions of 700. This is causing a lot of things to break, and I have to manually go in and make everything public for it to work again. This only happens when I build ports via sudo. If I am root and I run make install, everything works fine. I haven't changed anything recently either in sudo, or my umask. What can I do to fix this?