The 'usual' ways would be to use the same user that mysql was installed as (often mysql), the root user, the su command to 'become' a privileged user (either mysql or root), or sudo to do the same thing as su.
It is best to leave the permissions of the file as they are, generally such files are 'write-protected' for a reason!
To get 'su privileges' you will need to know the password for the user you wil lbe switching to. For sudo (if installed and configured) that may not be needed, depending on what you are authorised to do (in the sudoers config file). Of course, you'll need to be root to update the sudo configuration ...
Last edited by SimonJM; June 4th, 2012 at 10:18 AM.
The moon on the one hand, the dawn on the other:
The moon is my sister, the dawn is my brother.
The moon on my left and the dawn on my right.
My brother, good morning: my sister, good night.
-- Hilaire Belloc