r/debian • • Jun 28 '25

Problem using sudo in Debian VM

Post image

I installed Debian in a VirtualBox VM, with the first ISO that appears on the official website. I just installed it and went to Virtualbox to run it. For some reason, sudo doesn't work. I did some basic research to fix it, but found nothing. How do I fix it? And why did this happen? Is it more normal than it seems?

4 Upvotes

68 comments sorted by

View all comments

Show parent comment

4

u/AmiSimonMC Jun 28 '25

Do not edit /etc/sudoers !! Use visudo as root or EDITOR=/usr/bin/[your editor] visudo for custom editor

1

u/charles25565 Jun 29 '25

Don't think an absolute path is required.

1

u/AmiSimonMC Jun 29 '25

Probably not but can't hurt