Re: can't change saslpasswd2 via squirrelmail plugin SOLVED
On Sun, May 8, 2005 7:10 pm, Herisanu Alexandru said:
> Since nobody replied to this message, I will.
>
> /etc/sasldb2 is owned by root:sasl.
>
> If you change it to cyrus:sasl, it will work.
<ruffle ruffle, click click> boy this was from a LONG time ago. :)
the whole paradigm there is nefarious, the way that plugin works.
a hack quickly designed with little consideration for side-effects.
i abandoned the permissions problem and implemented it the way
*nix intended -- via "sudo".
in /usr/share/squirrelmail/plugins/chg_sasl_passwd/config.php:
$GLOBALS['chgsaslpasswd_cmd']
= "/usr/bin/sudo -u cyrus /usr/sbin/saslpasswd2";
as nature intended, now there's no need for a special binary with
dangerous permissions or ownership settings. less cruft, more
elegance, save the world, yada yada.
--
Liberty > Security
Reply to: