You are not logged in.
Pages: 1
Topic closed
Hi, I just moved from Ubuntu to Arch, and i was trying to get a new user to have sudo privelages, but wasn't able to do it.
everywhere I look online says to run visudo in the terminal, but when I do, it says
"visudo: no editor found (editor path = /usr/bin/vi)"
I'm not sure of what I need to do next.
I followed along https://bbs.archlinux.org/viewtopic.php?id=287431 specifically, and wasn't able to fully grasp what to fix.
can someone a little more experienced help me figure out what is wrong?
Last edited by 5d100 (2023-08-03 05:18:05)
Offline
Offline
I went through this page twelve times, and this didn't exist. thank you.
Offline
You might not have vi installed. Try installing it. You might need to do this as root (after su command) as sudo is not configured.
pacman -S vi
Offline
Having `vi` installed isn't necessary. You can install an editor like `vim` or `nano` and use that like `EDITOR=vim visudo`. If you get error: `bash: visudo: command not found`, you need to install `sudo`
Offline
Note that you're necrobumping a year old solved thread to reiterate what is already written in the wiki...
Closing this old post.
Offline
Pages: 1
Topic closed