in reply to CGI: A Tale of Two Usernames

Look into sudo (CPAN has a Sudo module, too).

Replies are listed 'Best First'.
Re^2: CGI: A Tale of Two Usernames
by wolfger (Deacon) on Dec 16, 2004 at 17:08 UTC
    After installing Sudo.pm I get an error
    wcma $ perl -e 'use Sudo' Base class package "Class::Accessor" is empty. (Perhaps you need to 'use' the module which defines that packa +ge first.) at Sudo.pm line 4 BEGIN failed--compilation aborted at Sudo.pm line 4. Compilation failed in require at -e line 1. BEGIN failed--compilation aborted at -e line 1.

    --
    Linux, sci-fi, and Nat Torkington, all at Penguicon 3.0
      You need to install Class:Accessor too.

      How did you install Sudo? If you just used the standard CPAN way of installing it, it should have brought in the dependency for you. If it didn't, this is probably a bug in the module's spec, and you should contact the maintainter (or better, open a bug in http://rt.cpan.org).

        It appears that the Makefile.PL does not have PREREQ_PM set - however the dependencies on Class::Accessor and IPC::Run are noted in the README. If any cares enough they should drop a note to the author.

        /J\

        It *might* be helpful, if you're trying the sudo route, to add your cgi user to the sudoers file and try running it from there, too. That might help to rule out an issue specific to the module.

        Amatuers discuss tactics. Professionals discuss logistics. And... my cat's breath smells like cat food.