you need to call the editor with root permission. "sudo gedit
text.file" in the terminal you will be prompted for your password.
assuming gnome you can install nautilus-gksu from the repositories whch
will give you "open as administrator" as a right click option. lets
you bypass the terminal for some things but still need to enter
password.