[GH-ISSUE #5267] --build: Error: cannot open profile file #2939

Closed
opened 2026-05-05 09:36:10 -06:00 by gitea-mirror · 4 comments
Owner

Originally created by @earth-sense on GitHub (Jul 22, 2022).
Original GitHub issue: https://github.com/netblue30/firejail/issues/5267

  1. Created directory ~/.config/firejail
  2. User and group are root
  3. Typed CLI: firejail --build=app.profile app in directory ~/.config/firejail

The error is returned "Error: cannot open profile file"

Originally created by @earth-sense on GitHub (Jul 22, 2022). Original GitHub issue: https://github.com/netblue30/firejail/issues/5267 1. Created directory ~/.config/firejail 2. User and group are root 3. Typed CLI: firejail --build=app.profile app in directory ~/.config/firejail The error is returned "Error: cannot open profile file"
gitea-mirror 2026-05-05 09:36:10 -06:00
Author
Owner

@ghost commented on GitHub (Jul 22, 2022):

  1. Created directory ~/config/firejail

Firejail expects user configurations to be under ~/.config/firejail (mind the dot).

  1. User and group are root

Why root instead of your regular user?

<!-- gh-comment-id:1192224385 --> @ghost commented on GitHub (Jul 22, 2022): > 1. Created directory ~/config/firejail Firejail expects user configurations to be under `~/.config/firejail` (mind the dot). > 2. User and group are root Why `root` instead of your regular user?
Author
Owner

@rusty-snake commented on GitHub (Jul 23, 2022):

/usr/bin/pkexec has the right SETUID as -rws

What matters are permissions inside the sandbox, and there it can not escalat privileges.

For which app do you try to build a profile?

<!-- gh-comment-id:1193072672 --> @rusty-snake commented on GitHub (Jul 23, 2022): > /usr/bin/pkexec has the right SETUID as -rws What matters are permissions inside the sandbox, and there it can not escalat privileges. For which app do you try to build a profile?
Author
Owner

@rusty-snake commented on GitHub (Jul 23, 2022):

And answer this question.

Why root instead of your regular user?

<!-- gh-comment-id:1193072820 --> @rusty-snake commented on GitHub (Jul 23, 2022): And answer this question. > Why `root` instead of your regular user?
Author
Owner

@rusty-snake commented on GitHub (Aug 30, 2022):

I'm closing here due to inactivity, please fell free to request to reopen if you still have this issue.

<!-- gh-comment-id:1231487842 --> @rusty-snake commented on GitHub (Aug 30, 2022): I'm closing here due to inactivity, please fell free to request to reopen if you still have this issue.
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#2939
No description provided.