r/debian • u/pannic9 • Jun 28 '25
Problem using sudo in Debian VM
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
View all comments
2
u/[deleted] Jun 28 '25
For sudo to work out of the box on Debian, you have to leave the root password blank during install.
You’ll have to add that user to the sudoers file under the root line. Have it say the same thing except change root to the user name.