visudo, EDITOR, Defaults (editor)

michael.kanturek at ct.cz michael.kanturek at ct.cz
Thu Jan 17 07:09:51 EST 2002


	Hi,

	I have following problem with visudo

	Linux# visudo -V
	 visudo version 1.6.5
	
	Linux# type -a vi 
	 vi is /usr/local/bin/vi

	Linux# echo $EDITOR
	 /usr/local/bin/vi

	Linux# visudo
	 visudo: no editor found (editor path = /usr/bin/vi)

	after adding 'Defaults	editor=/usr/local/bin/vi' into
	'/etc/sudoers'

	Linux# visudo
	 visudo: unable to run č @č @al/bin/vi: No such file or directory
	 visudo: sudoers file unchanged.
	(strange characters in filename)

	then i removed EDITOR

	Linux# unset EDITOR
	Linux# echo $EDITOR
	 (--nothing--) 

	Linux# visudo
	 works fine



	What am I doing wrong, please ?
	Sorry for being so brief but my English is terrible.



                   Thanks,

                               Michael

------------------------
Michael Kanturek
SDH/PDH Engineer
michael.kanturek at ct.cz



More information about the sudo-users mailing list