I’ve got an ‘out-of-the-box’ installation of VirtualMin on Ubuntu 10.4 and have installed the latest Roundcube (version .5.3) and all is working well except for the Change-password plugin. The form-page for changing the password shows up okay, but each time I attempt to change the password I get a message “Password could not be changed”.
In the config.inc.php file I’ve set it to:
$rcmail_config[‘password_driver’] = ‘virtualmin’;
… as the default is ‘sql’ and the mail is not using MySQL.
There seems to be a few methods of getting it to work described in a number of blogs and sites, but they seem to be about earlier versions. I’ve worked through a number of them but no luck.
Has anyone got any hints on getting this plugin to work?
comment the switch sentence because we have the user’s domain.
In my system, I have users with serveral system names: user.domain, user-domain, user without domain, because these came from others systems. I prefer to obtain the domain from the postfix virtual table using the user2email function provided by virtusert_file plugin.
I am having same issue.
my users are this way: user.domain and tried every solution out there.
Even hardcoding domain!!
But ends with:
PHP Error, Password plugin: Unable to execute
How can I fix it?
Or,
Is there a way to store mail’s password in the database where users are stored?
Howdy, I tried exactly the same, and it is working when running from console, however on my system the binary turns out red after changing the permissions. I am running on CentOS.
@frnet: What exactly did you do to set correct permission on that file?
[15-Dec-2011 13:46:39 +0100]: PHP Error: Password plugin: Unable to execute /home/divint/domains/sjekkepost.no/public_html/plugins/password/drivers/chgvirtualminpasswd in /home/divint/domains/sjekkepost.no/public_html/plugins/password/drivers/virtualmin.php on line 67 (POST /?_task=settings&_action=plugin.password-save?_task=&_action=)
I think this script is supposed to run as root, not sure why though.
// set the UID this script will run as (root user) #define UID 0 #define CMD “/usr/sbin/virtualmin”
The instructions in my post above were the only instructions apart from going trough the configuration. I followed the instructions but when they did not work (permission error), I tried to chown site user and group instead.
Did you by chance run both the chown and the chmod commands?
While I’m not familiar with this plugin, it appears as if it’s calling the “/usr/sbin/virtualmin” command line tool in order to change the user’s password. It would indeed need to run as root in order for that to work, and you’d have to run both that chown and chmod command in order to run as root.
Yes i did and it didn’t work either:/ ls -l shows that the file in question is red, not sure exactly what it means on CentOS but I have a pretty good idea.
You don’t, it’s already there. just follow the instructions below INSTALLING: and good luck, I could not get it working using CentOS at least, virtualmin command line require root perms, somehow my system won’t allow to run this…