sudo and env gotcha (or is it just me?)



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.

--
--
_______________________________________________
freebsd-questions@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • [Full-Disclosure] [USN-28-1] sudo vulnerability
    ... sudo vulnerability ... Ubuntu 4.10 ... The following packages are affected: ... The problem can be corrected by upgrading the affected package to ...
    (Full-Disclosure)
  • [USN-28-1] sudo vulnerability
    ... sudo vulnerability ... Ubuntu 4.10 ... The following packages are affected: ... The problem can be corrected by upgrading the affected package to ...
    (Full-Disclosure)
  • [USN-28-1] sudo vulnerability
    ... sudo vulnerability ... Ubuntu 4.10 ... The following packages are affected: ... The problem can be corrected by upgrading the affected package to ...
    (Bugtraq)