Permission Error on $pref['brandname'] User Directory

Change the permission of the $pref['brandname'] user directory to the Webserver user. Permission denied while writing user-file : $var['error']