Gentoo Archives: gentoo-user

From: Daniel da Veiga <danieldaveiga@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Am I wrong?..
Date: Thu, 01 Oct 2009 17:25:45
Message-Id: 342e1090910011025g319cfab2p1d837d969842422b@mail.gmail.com
In Reply to: Re: [gentoo-user] Am I wrong?.. by "Arthur D."
1 2009/10/1 Arthur D. <spinal.by@××××.ru>:
2 >>> I gonna bet you added "magic" line to your sudoers previously or make
3 >>> some other
4 >>> crutches to make it work:
5 >>> Defaults env_keep="EDITOR"
6 >>
7 >> You lost that bet.
8 >
9 > Proof?
10 >
11 >> Section 8.c of the Gentoo Handbook (called System Information) advises
12 >> you to edit /etc/rc.conf to change your preferences.
13 >
14 > Daniel, I read the book carefully and did all that was need. Also I
15 > commented
16 > #EDITOR="/bin/nano"
17 > And set
18 > EDITOR="/usr/bin/vim"
19 > there
20 > Any more suggestions?
21 >
22
23 I'm using a 4 years old system, and if I change that line, log out and
24 in again, it changes the env variable and everything works (that means
25 the behavior is probably caused by your configuration). If visudo is
26 still using that configuration, maybe that's because some
27 configuration file has precedence over environment variables. In that
28 case, you gotta find that file and change it.
29
30 Not an easy task, anyway... I just did an "grep -r /bin/nano" in /etc.
31 LOL, I know there's a better way, I'm just too lazy to look for it...
32
33 --
34 Daniel da Veiga

Replies

Subject Author
Re: [gentoo-user] Am I wrong?.. "Arthur D." <spinal.by@××××.ru>
Re: [gentoo-user] Am I wrong?.. "Arthur D." <spinal.by@××××.ru>