Tiny Core Base > TCB Bugs

visudo: no editor found

(1/2) > >>

bonbob:
Trying to use visudo on CorePure64 v.10, i catched this:


--- Code: ---visudo: no editor found (editor path = /usr/bin/vi)
--- End code ---

sure, it can be fixed by creating symlink


--- Code: ---ln -s /bin/vi /usr/bin/vi
--- End code ---

but maybe it will better fix in distro?

Rich:
Hi bonbob
You could add the following to your  sudoers  file:

--- Code: ---Defaults editor=/usr/local/bin/editor
--- End code ---
Replace  /usr/local/bin/editor  with your choice of path and editor. Found here in case you want to read the rest of the thread:
http://forum.tinycorelinux.net/index.php/topic,15418.msg89421.html#msg89421

This was also reported here:
http://forum.tinycorelinux.net/index.php/topic,22711.msg142148.html#msg142148
and here:
http://forum.tinycorelinux.net/index.php/topic,21910.msg137105.html#msg137105

bonbob:

--- Quote from: Rich on May 26, 2019, 02:26:24 PM ---You could...
--- End quote ---

Sure i can. All of these topicstarters comes to one solution - make symlink from /bin/vi to /usr/bin/vi
And as visudo not working in CorePure out-of-the-box - it will not work untill someone not fix it once and for all

PDP-8:
Ah, ok cool that works for me with either vi or another editor of choice with either of the two above solutions.

I was struggling trying to follow that .profile and .ashrc editor fallback logic and found this golden oldie:

http://forum.tinycorelinux.net/index.php/topic,15337.msg88757.html#msg88757

Ok, I'm not going to touch the .ashrc fallback logic, but maybe we don't need that anymore with the two solutions of either linking vi or manually editing the sudoers file just once to enable your desired editor?

I'll look into crontab -e as well....

Juanito:
After extensive searching of my "archives", I've found the sudo-1.7.8p1 source and can recompile visudo to approximately the same size pointing to /bin/vi - testing to follow...

Navigation

[0] Message Index

[#] Next page

Go to full version