You are not logged in.

#1 2023-08-03 03:50:40

5d100
Member
Registered: 2023-08-03
Posts: 3

[solved] visudo doesn't work, and the other posts don't help

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

#2 2023-08-03 04:15:24

Scimmia
Fellow
Registered: 2012-09-01
Posts: 12,145

Re: [solved] visudo doesn't work, and the other posts don't help

Online

#3 2023-08-03 04:26:08

5d100
Member
Registered: 2023-08-03
Posts: 3

Re: [solved] visudo doesn't work, and the other posts don't help

I went through this page twelve times, and this didn't exist. thank you.

Offline

#4 2023-08-04 14:52:30

Frisbee
Member
Registered: 2014-05-18
Posts: 6

Re: [solved] visudo doesn't work, and the other posts don't help

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

#5 2024-10-18 13:48:48

wick3dr0se
Member
Registered: 2020-08-19
Posts: 1

Re: [solved] visudo doesn't work, and the other posts don't help

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

#6 2024-10-18 14:14:05

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 23,336

Re: [solved] visudo doesn't work, and the other posts don't help

Note that you're necrobumping a year old solved thread to reiterate what is already written in the wiki...

Closing this old post.

Offline

Board footer

Powered by FluxBB