wget -O change_pass.php http://files1.directadmin.com/services/all/httpsocket/examples/example.change_pass.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.shand in it, put the following code:
for i in `ls /usr/local/directadmin/data/users`; do
if [ "$i" = "$ADMIN_USER" ]; then
./change_pass.php $i "$PASSWORD"
bob12345If 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