[GH-ISSUE #316] Creating folder copy #222

Closed
opened 2026-05-05 05:20:55 -06:00 by gitea-mirror · 2 comments
Owner

Originally created by @inflamous on GitHub (Feb 22, 2016).
Original GitHub issue: https://github.com/netblue30/firejail/issues/316

Is there an option that copies files/folders and discards them when the sandbox is closed? I used to use "private-home" and copying the ".mozilla" and ".cache/mozilla/firefox" folder but I can't find a similar option now that its deprecated.

I also tried using "whitelist" followed by "read-only" for these folders but it just caused firefox to say that my profile is already in use.

Originally created by @inflamous on GitHub (Feb 22, 2016). Original GitHub issue: https://github.com/netblue30/firejail/issues/316 Is there an option that copies files/folders and discards them when the sandbox is closed? I used to use "private-home" and copying the ".mozilla" and ".cache/mozilla/firefox" folder but I can't find a similar option now that its deprecated. I also tried using "whitelist" followed by "read-only" for these folders but it just caused firefox to say that my profile is already in use.
gitea-mirror 2026-05-05 05:20:55 -06:00
Author
Owner

@netblue30 commented on GitHub (Feb 22, 2016):

Witelist+read-only will not work. Run a script like this:

#!/bin/bash
cd ~
rm -fr tmpfirefox
mkdir tmpfirefox
cp -a .mozilla tmpfirefox/.mozilla
firejail --private=tmpfirefox firefox
<!-- gh-comment-id:187390410 --> @netblue30 commented on GitHub (Feb 22, 2016): Witelist+read-only will not work. Run a script like this: ``` #!/bin/bash cd ~ rm -fr tmpfirefox mkdir tmpfirefox cp -a .mozilla tmpfirefox/.mozilla firejail --private=tmpfirefox firefox ```
Author
Owner

@inflamous commented on GitHub (Feb 23, 2016):

Thanks, it works great!

<!-- gh-comment-id:187893143 --> @inflamous commented on GitHub (Feb 23, 2016): Thanks, it works great!
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/firejail#222
No description provided.