[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: visudo default editor



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Il giorno Mon, 17 Dec 2007 15:09:05 +0100
Riccardo `borda` Bordacchini <borda_g@alice.it> ha scritto:

> Marco Romano wrote:
> > Per i pigri, dovrebbe bastare:
> > 
> > # update-alternatives --config editor
> > 
> 
> è già impostato a /bin/nano.
> il fatto è che visudo adesso non va più a guardare li, ma cerca di
> aprire VI. e non capisco se c'è qualche file di configurazione da
> modificare per cambiare questo comportamento, se c'è qualche variabile
> da impostare o se devo obbligatoriamente creare un link simbolico
> /usr/bin/vi che punta a /usr/bin/editor. (soluzione che tra l'altro
> non mi sembra molto elegante)

	Ciao,

considerato che /usr/bin/vi è un link simbolico a /etc/alternatives/vi
credo sarebbe meglio modificare li secondo. In ogni caso non è molto
elegante, ma almeno non viene toccata /usr.

Tuttavia la manpage di visudo (almeno qdi quello in "Etch") dice:
"There is a hard-coded list of editors that visudo will use set at
compile-time that may be overridden via the editor sudoers Default
variable.  This list defaults to the path to vi(1) on your system, as
determined by the configure script."

man sudoers, alle voci "env_editor" e "editor" parla della cosa...

Nicola, che spera di aver letto bene
- -- 
...all is relative, so don't think you're on the right side...

:: send all your mail in plain ASCII text, please ::
Linux counter registered user n° 356433 -> see http://counter.li.org/
http://www.ebruni.it/docs/pippolone196/index.htm
http://www.no1984.org/ - http://www.againsttcpa.com/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFHZpi7rnmd9s7SIGsRAqC2AKDHJVpUaMw+7Xq4rr6OHNhQzrsOGgCfSOop
UxdZ+iCus6Wimv8SJmdkYF8=
=wRgs
-----END PGP SIGNATURE-----

Reply to: