September 29, 20205 yr Hello all, i hope this is the right place to post this. So before 6.9 beta 25 i was running this script at startup : #!/bin/bash chown "username":users /etc/ssh/"username".pubkeys echo ""username" ALL=(root) NOPASSWD: /usr/sbin/virsh domstate *, /usr/sbin/virsh start *, /usr/sbin/virsh shutdown *">>/etc/sudoers.d/vmc chmod 0440 /etc/sudoers.d/vmc mkdir /home/"username" this allowed me to run the virsh commands as the "username" user. After updating to 6.9 beta 25 i noticed that it no longer works, in an attempt to debug this i tried this command: sudo -u "username" virsh domstate "vmname" and i get the following error: error: failed to connect to the hypervisor error: Cannot create user runtime directory '/.cache/libvirt': Permission denied is there something i can do to be able to run this command as this user again? Thank you in advance for your time and sorry if this is not the correct place to post
Archived
This topic is now archived and is closed to further replies.