[libvirt-users] virsh snapshot-create-as: change umask on snapshots
Mircea Husz
mirceahusz at yahoo.com
Wed Mar 20 18:50:10 UTC 2019
I scripted the creation of snapshots and it works fine. Now I'd like to run the script as non-root.
virsh snapshot-create-as --domain hq-live-v01 \
--name snappy \
--diskspec vda,file=/var/lib/libvirt/images/hq-live-v01.snappy,snapshot=external \
--diskspec vdb,file=/var/lib/libvirt/images/hq-live-storage.snappy,snapshot=external \
--disk-only --quiesce --atomic
This fragment creates the snapshots, but get created with mode 0600:
-rw------- 1 qemu qemu 393216 Mar 19 17:08 hq-live-storage.snappy
-rw------- 1 qemu qemu 1048576 Mar 19 17:08 hq-live-v01.snappy
The user account is in the libvirt group and has permissions to do everything except delete the files created by the snapshot, all I need is to get the snapshots created with 0660 mode.
This is on a Centos 7.6 installation. What knobs do I need to turn to control the umask?
Thanks,
-Mike
More information about the libvirt-users
mailing list