Skip to content

Instantly share code, notes, and snippets.

@rushipkar90
Created September 25, 2015 16:49
Show Gist options
  • Save rushipkar90/42e88d1d6cc537b94a0b to your computer and use it in GitHub Desktop.
Save rushipkar90/42e88d1d6cc537b94a0b to your computer and use it in GitHub Desktop.
root_owner_change.sh
#!/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