Help with copy from /tmp to /etc

My first attempt to customize firefox was the one you suggested. Run debian-10-dvm, install addons and make some changes in preferences in firefox etc., poweroff the AppVM and you’re good to go (if i understand correctly what you mean). I’ve done this with the following commands:
onequbesuser@dom0:~ qvm-run debian-10-dvm gnome-terminal
user@debian-10-dvm:~ firefox
make changes in firefox
user@debian-10-dvm:~ sudo poweroff

It worked perfectly. Than I’ve read this thread: [link] where @Qubicroot said if firefox will be open in the AppVM a profile is created and than that particular profile will rotate in every disposable VM you open. He linked to a google group, where @mekken1et’s opening post was the one why i tried the approach through /rw/config/rc.local with the policies.json. If i understand it correctly, in this case a firefox profile won’t be created directly in the AppVm, only a random profile will be created if i open firefox in dispVM, but with the settings you wrote in to the policies.json (addons, preferences, etc.). Correct me if i’m wrong about it. And the commands written into /rw/config/rc.local survive every reboot of the AppVM (when a new dispVM is opened), and everything is downloaded to the place where i wanted to download it. In this case every hosts file i download with wget from github will be the latest, while if i’m creating a folder and files elsewhere with the possibility of bind-dirs, (while i don’t figure out how to make a script to update all hostfiles, i’m not so good in scripting) i’ll have to update them manually.

I’m just don’t know how to make a command in /rw/config/rc.local to copy to /etc/hosts without the permission denied error.

But thanks for the answer, i will read more about the bind-dir option!

Sorry for my bad english, i hope i’m understanable though!