# from Matisse Enzer
# on Thursday 18 October 2007 10:31:
>In comment http://use.perl.org/comments.pl?sid=37249&cid=58370 brian
>d foy points out that these days there is a really easy way to run
>CPAN as a normal user, and install as root.
Yep. And if your sudoers file is more restrictive, you might have
something like this (relative paths aren't allowed in sudoers)
ewilhelm ALL=(ALL) NOPASSWD: /usr/bin/make install
ewilhelm ALL=(ALL) NOPASSWD: /usr/local/sbin/mbBuild install
/usr/local/sbin/mbBuild is:
#!/bin/sh
./Build $@
And the cpan config goes like:
'mbuild_install_build_command' => q[sudo /usr/local/sbin/mbBuild],
That said, I'm thinking of switching to Abigail's method of a dedicated
user owning the perl tree (bin and man dirs become a sticky bit
though -- symlinks?) and doing away with root involvement altogether.
--Eric
--
"You can't win. You can't break even. You can't quit."
--Ginsberg's Restatement of the Three Laws of Thermodynamics
---------------------------------------------------
http://scratchcomputing.com
---------------------------------------------------