cd /root
wget -O change_pass.php http://files1.directadmin.com/services/all/httpsocket/examples/example.change_pass.php
wget http://files1.directadmin.com/services/all/httpsocket/httpsocket.php
chmod 700 change_pass.php
./change_pass.php username "password"
where username is the name of the DA User account, and password is the password the User will be set to. It's imporant to use the API or DA to change User passwords, because DA updates many locations (system, ftp, email, database), which the "passwd" command does not do./root/change_all_user_pass.sh
and in it, put the following code:#!/bin/sh
ADMIN_USER=admin
for i in `ls /usr/local/directadmin/data/users`; do
{
if [ "$i" = "$ADMIN_USER" ]; then
continue;
fi
PASSWORD=${i}12345
./change_pass.php $i "$PASSWORD"
};
done;
exit 0;
bob12345
If you wish for all User accounts to be set to the same password, then set the PASSWORD= value to that single desired password.chmod 755 /root/change_all_user_pass.sh
/root/change_all_user_pass.sh