Created
September 25, 2015 16:49
-
-
Save rushipkar90/42e88d1d6cc537b94a0b to your computer and use it in GitHub Desktop.
root_owner_change.sh
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
USERS_PATH="/var/cpanel/users" | |
for l in `ls -A $USERS_PATH | grep -v hpspprt` | |
do | |
sed -i '/OWNER=root/s//OWNER=hpspprt/' $USERS_PATH"/"$l | |
done | |
/scripts/updateuserdomains | |
exit 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment