andrew writes:

"Gee, I randomly changed the ownership and permissions on a binary, and
it
doesn't work anymore. How come?"

Heh...I guess I deserved that...did I mention I was newbie at Linux as
well
as Courier? <g>

So I changed the permissions back to what they were originally, restarted
courier and httpd, and I'm still getting "ERROR: Invalid Password"

The original permissions included the setuid bit. Did you restore it?


OK, after messing around a bit, I finally just recopied over the folder and
binaries to /var/www/cgi-bin/

The only thing you need to copy is the webadmin binary.

When you copy a file, the setuid bit is automatically turned off. From INSTALL:

OPTIONAL: Configure webadmin

  This  is  a  web-based  administration  tool.  webadmin  is  a web CGI
  application.  It  is necessary to have a local web server installed in
  order  to  use  webadmin. Apache will do, but so will any other server
  with  a  complete CGI implementation (PHP is not required). Installing
  webadmin is a three step process:
   1. Move /usr/lib/courier/libexec/courier/webmail/webadmin to your web
      server's SSL cgi-bin directory. Take care to preserve the binary's
                                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      ownership and permissions.
      ^^^^^^^^^^^^^^^^^^^^^^^^^^

When in doubt, follow the instructions.


Attachment: pgp00000.pgp
Description: PGP signature

Reply via email to