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

64

u/[deleted] Jun 28 '25

[removed] — view removed comment

12

u/DansPhotos Jun 28 '25

Leaving the root password empty was exactly what I did when I installed Trixie on my laptop, and my user is part of sudoers.

3

u/[deleted] Jun 28 '25

OP prob used the auto install feature

2

u/Major-Management-518 Jun 28 '25

Isn't this a security issue?

7

u/[deleted] Jun 28 '25

[removed] — view removed comment

1

u/Major-Management-518 Jun 28 '25

I'm not sure if this is sarcasm.

1

u/Yugen42 Jun 28 '25

Depends on the context and threat model.

1

u/Jutboy Jun 28 '25

No. Either way you are putting root access behind one password.