Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 30 Jul 2007 14:20:35 -0500
From:      "illoai@gmail.com" <illoai@gmail.com>
To:        freebsd-questions <freebsd-questions@freebsd.org>
Subject:   sudo and env gotcha (or is it just me?)
Message-ID:  <d7195cff0707301220x124219abn12f7f5559f4cc0ab@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
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.

-- 
--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?d7195cff0707301220x124219abn12f7f5559f4cc0ab>