Page 2 of 2 FirstFirst 12
Results 11 to 12 of 12

Thread: export EDITOR=gedit && sudo visudo opens the sudoers file in the terminal window

  1. #11
    Join Date
    Jan 2008
    Beans
    4,757

    Re: export EDITOR=gedit && sudo visudo opens the sudoers file in the terminal window

    Quote Originally Posted by p_quarles View Post
    Thanks for this, prshah. The need to use environment preservation with sudo is apparently need to Ubuntu 8.04. I'll try to incorporate this into a more permanently visible location, since there are dozens of tutorials on the web that explain how to export editors, but none that I have seen mention this.
    If you want a more permanent link. I made a bug about this when Hardy was in Alpha (I'd never used vi before and got quite a shock).

    But I think that my workaround is sound too.

    Regards
    Iain

  2. #12
    Join Date
    May 2007
    Beans
    7,032
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: export EDITOR=gedit && sudo visudo opens the sudoers file in the terminal window

    Quote Originally Posted by tinivole View Post
    If you want a more permanent link. I made a bug about this when Hardy was in Alpha (I'd never used vi before and got quite a shock).

    But I think that my workaround is sound too.

    Regards
    Iain
    I added it to the forum policy statement in Security Discussions, which is a sticky thread.

    And, yes, your workaround is good, but it's just a more permanent version of the same thing. The -E option is the key to both.
    I am aware of all internet traditions. | Getting the best help | Text formatting codes | My last.fm profile
    Should I PM support questions? NO!

Page 2 of 2 FirstFirst 12

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •