I need to edit my sudoers file but for some reason the sudoers file keeps opening in the terminal window instead of gedit. What am I doing wrong? I'm currently running Ubuntu 8.04.
export EDITOR=gedit && sudo visudo
At the moment the only way I can edit the file is to chmod it and then double click on the file icon. I can't even open gedit from the terminal as root. The following error is displayed when I type /usr/bin/gedit or gedit as root.
cannot open display:
Run '/usr/bin/gedit --help' to see a full list of available command line options
Bookmarks