This repo contains some force.com code I wrote for customer portal profiles and user being able to edit them.