I want to add my user to the virtualization group, to use Qemu witthout root

I type sudo usermod -a -G libvirt $(Myuser)

Comes back “Myuser” is an unrecognized command.

Use your actual username. So if your username is CocaCola, do:

sudo usermod -a -G libvirt CocaCola

Nice one.

If you wanted to use command substitution you could have use this.
usermod -aG libvirt $(whoami)

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.