Try this:
Code:
chmod u+w .bash_profile
The above command makes it writable only by the owner of the file. So, if the owner is non-root, make sure you do:
Code:
chown username: .bash_profile
Of course, replace 'username' with the appropriate name of the user.