You need to open the file with sudo before your gedit command. In the terminal
type: sudo gedit [file name with path] You can also use gksu instead of sudo. If
you don't know the path or file name just use gksu gedit and then navigate to
the file from gedit. I hope this helps.