The default permission in CB is set to 664, meaning that only php can change a permission.
There are two ways of changing your directory permission:
1. Go to Global Configuration > Server > Under "Directory Creation" -> select CHMOD new directories -> set to "777" and check the box that says "Apply to existing directories". Then do the same for "File Creation" section of the same page.
---- or
2. Use any text editor (don't use MS Word) to create a file called permission.php which contains the following text:
[code:1]<?php
// change the permission of the folder(s) containing the file(s):
chmod('components/com_comprofiler/image.jpg',0777) or die('Unable to chmod folder.');
echo ('Success!');
?>[/code:1]
Of course, you'd want to change the code above with your actual folder path to the target file.
Save this permission.php file into your mambo/joomla directory, then using the browser type in the path of the file name (e.g.
www.somewebsite.com/mymambodirectory/permission.php). this will execute the php page we created earlier.
If all is well, you should only see a "Success" text displayed.
Once you're done, simply edit the permission.php to change the status back to it's original state (e.g. 644) and remove the permission.php file from your web server.