From owner-freebsd-questions@FreeBSD.ORG Mon Jul 30 19:20:37 2007 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 A659816A419 for ; Mon, 30 Jul 2007 19:20:37 +0000 (UTC) (envelope-from illoai@gmail.com) Received: from fk-out-0910.google.com (fk-out-0910.google.com [209.85.128.191]) by mx1.freebsd.org (Postfix) with ESMTP id 3F70313C474 for ; Mon, 30 Jul 2007 19:20:37 +0000 (UTC) (envelope-from illoai@gmail.com) Received: by fk-out-0910.google.com with SMTP id b27so245274fka for ; Mon, 30 Jul 2007 12:20:36 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=s++ttngqcaoFnK4EUVcScMLGMnPnUGcDo7l5n0nDGkGV9YJ/8VQMxN37brMnoPAAkmoKacFNDNJJcfG1+/szcifC/X1jG4VOQa7UMmf0OUw+gxTr2CMtkZ8rtac/A4Mxl6MSNAmdJPwAQTAY5VmnOKevt/kMjbMpcarsB6CvmqQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=YJ52nM72ntI/f84llWNA9KkZJplpnsAmuC0Gl212L1ezj2vLYjts0ZM34YhK2+cxZzj3H8A6hRdr8t0MUNAxdflFR7jtV5D3h/ALfuVkIZZMZGDhEbr/ISeYrvecMG70mcq3CZwXHA4Ha9NRMto1aei4HZop4NMb2GYI168hdBE= Received: by 10.82.186.5 with SMTP id j5mr4792329buf.1185823235841; Mon, 30 Jul 2007 12:20:35 -0700 (PDT) Received: by 10.82.185.5 with HTTP; Mon, 30 Jul 2007 12:20:35 -0700 (PDT) Message-ID: Date: Mon, 30 Jul 2007 14:20:35 -0500 From: "illoai@gmail.com" To: freebsd-questions MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Subject: sudo and env gotcha (or is it just me?) 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: Mon, 30 Jul 2007 19:20:37 -0000 After blithely upgrading everything else, I at- tempted rebuilding jdk15 and, crumbs! my nfs mounted /ports (4.7G) filled up and the build barfed although I have WRKDIRPREFIX set in /etc/csh.cshrc Barbara Streisand! I thought, what could be the prob-lem now? % cd /ports/java/jdk15 && sudo make extract puts the work/ directory right there in /ports/java/jdk15/ Hooray(?)! well, it's not portupgrade's fault, since make is also not using $WRKDIRPREFIX And then it occured to me that I had upgraded sudo. Oh ho! % sudo env gave me quite a short list, which certainly didn't include WRKDIRPREFIX. A not very quick perusal of man 8 sudo and then man 5 sudoers and I finally found the env_reset flag and a host of others besides. Boy, was that ever a fun auuenture! Lesson: be observant when upgrading important things. or It never hurts to read. -- --