[GH-ISSUE #2916] private does not see my new folder #1821

Closed
opened 2026-05-05 08:29:26 -06:00 by gitea-mirror · 3 comments
Owner

Originally created by @jisabe on GitHub (Aug 18, 2019).
Original GitHub issue: https://github.com/netblue30/firejail/issues/2916

Hi,

newHomeDir=/home/test99

sudo mkdir $newHomeDir

sudo chmod -R 777 $newHomeDir

sudo chown $USERNAME $newHomeDir

firejail --noprofile --read-write=$newHomeDir --read-only=/my_custom_dir --private=$newHomeDir opera

I got this error:

Error mount bind: fs_home.c:239 fs_private_homedir: No such file or directory

Thanks for your help

Originally created by @jisabe on GitHub (Aug 18, 2019). Original GitHub issue: https://github.com/netblue30/firejail/issues/2916 Hi, ```bash newHomeDir=/home/test99 sudo mkdir $newHomeDir sudo chmod -R 777 $newHomeDir sudo chown $USERNAME $newHomeDir firejail --noprofile --read-write=$newHomeDir --read-only=/my_custom_dir --private=$newHomeDir opera ``` I got this error: `Error mount bind: fs_home.c:239 fs_private_homedir: No such file or directory` Thanks for your help
gitea-mirror 2026-05-05 08:29:26 -06:00
Author
Owner

@jisabe commented on GitHub (Aug 18, 2019):

I found it. With below change it worked:

newHomeDir=/home/myusername/test99

but why? Is there any way to use /home/$newHome ?

<!-- gh-comment-id:522329502 --> @jisabe commented on GitHub (Aug 18, 2019): I found it. With below change it worked: newHomeDir=/home/myusername/test99 but why? Is there any way to use /home/$newHome ?
Author
Owner

@rusty-snake commented on GitHub (Aug 23, 2019):

@jsabe you need --allusers

--allusers
All directories under /home are visible inside the sandbox. By
default, only current user home directory is visible.

<!-- gh-comment-id:524417130 --> @rusty-snake commented on GitHub (Aug 23, 2019): @jsabe you need `--allusers` > **--allusers** All directories under /home are visible inside the sandbox. By default, only current user home directory is visible.
Author
Owner

@rusty-snake commented on GitHub (Sep 10, 2019):

I'm closing here due to inactivity, please fell free to reopen if you have more questions.

<!-- gh-comment-id:529917503 --> @rusty-snake commented on GitHub (Sep 10, 2019): I'm closing here due to inactivity, please fell free to reopen if you have more questions.
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#1821
No description provided.