How do I transfer a file from a qube to dom0 without GUI confirmation via script?

If I use the
qvm-run --pass-io VM-NAME 'cat /path/to' > /path/to/
with bash script, I get a GUI confirmation. can I somehow make it so it just pass the file without the GUI interaction?

You would need to make the function using qrexec, and set up policies to control which qubes are allowed to use it.

1 Like

Thanks I’ll experiment with that.
But eventually I should be able to use just the bash script in dom0 with properly granted permissions so it will modify the policies etc without GUIs, right?

If you mean from dom0, then you are running a custom RPC policy as that’s usually allowed withou confirmation. Check your policy in dom0 at /etc/qubes/policy.d/.

2 Likes

Could you provide a screenshot of the confirmation dialog? I can’t reproduce this on my r4.3 system.