mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #3868] Error getpwuid: main.c:237 init_cfg: Success (keepassxc/signal/joplin) #2432
Labels
No labels
LTS merge
LTS merge
bug
bug
converted-to-discussion
doc-todo
documentation
duplicate
enhancement
file-transfer
firecfg
firejail-in-firejail
firetools
graphics
help wanted
information_old
installation
invalid
modif
moved
needinfo
networking
notabug
notourbug
old-version
overlayfs
packaging
profile-request
pull-request
question
question_old
removal
runtime-permissions
sandbox-ipc
security
stale
wiki
wiki
wontfix
wordpress
workaround
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/firejail#2432
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @heli-aviator on GitHub (Jan 4, 2021).
Original GitHub issue: https://github.com/netblue30/firejail/issues/3868
Hi, I have followed every tutorial I can find out there, on firejail, but none seem to do more than firejail -firefox or maybe terminator.
I'm new to Linux I'm running Manjaro XFCE and I cannot figure out how to firejajil other apps than the apps that come preinstalled on Manjaro.
I want to firejail:
the only nonstandard app I gave gotten to work is
vivaldi-stable
when I try the other commands that are in firecfg.config none of them work like on Brave browser, tor-browser, keepassxc i.e
could anyone point me in the right direction where I can find the information to make a firejail profile and how to install it? or if you know could you make a tutorial/writeup on how to do it, so us newbies can learn.
I would very much appreciate it!
@rusty-snake commented on GitHub (Jan 5, 2021):
KeePassXC and signal-dekstop have a profile. For joplin is already a request in #1139 (as you saw I guess).
What did you try?
firejail /usr/bin/keepassxc? What failed?https://github.com/netblue30/firejail/wiki/Creating-overrides
https://github.com/netblue30/firejail/blob/master/etc/templates/profile.template
man 5 firejail-profilehttps://github.com/netblue30/firejail/wiki/Creating-Profiles
https://github.com/netblue30/firejail/wiki/Sandboxing-Binary-Software
https://firejail.wordpress.com/documentation-2/building-custom-profiles/
https://wiki.archlinux.org/index.php/firejail#Creating_custom_profiles (you should prefer our profile.template from above over default.profile for writing profiles)
Just places a file named
PROGRAM-NAME.profile(e.g.firefox.profile) in~/.config/firejail.Tor browser is special, see here or here.
@heli-aviator commented on GitHub (Jan 5, 2021):
Thank you for your quick response.
I know there should be a default profile for keepassxc and signal-desktop but the commands to start them do not work. This is the error message I get every time I try Signal and Keepassxc + plus most other apps that I have installed.
I had not tried the (firejail /usr/bin/keepassxc) command but it results in the same messages as below.
commands I've tried:
firejail keepassxc
firejail keepassxc-cli
firejial libreoffice
firejail masterpdfeditor4
firejail signal-cli
firejail signal-desktop
[firejail signal-desktop
Reading profile /etc/firejail/signal-desktop.profile
Reading profile /etc/firejail/disable-common.inc
Reading profile /etc/firejail/disable-devel.inc
Reading profile /etc/firejail/disable-exec.inc
Reading profile /etc/firejail/disable-interpreters.inc
Reading profile /etc/firejail/disable-programs.inc
Reading profile /etc/firejail/disable-passwdmgr.inc
Reading profile /etc/firejail/whitelist-common.inc
Reading profile /etc/firejail/whitelist-var-common.inc
Parent pid 5315, child pid 5316
Warning: An abstract unix socket for session D-BUS might still be available. Use --net or remove unix from --protocol set.
Warning: skipping alternatives for private /etc
Warning: skipping crypto-policies for private /etc
Warning: skipping pki for private /etc
Private /etc installed in 27.17 ms
Warning: /sbin directory link was not blacklisted
Warning: /usr/sbin directory link was not blacklisted
Warning: not remounting /run/user/1000/gvfs
Child process initialized in 149.22 ms
Error getpwuid: main.c:237 init_cfg: Success
Parent is shutting down, bye...]
I will continue to play around with it, but if you have seen this before and know how to get it to work I would love the help! again I'm a newbie on linux, I appologize if it's me doing something wrong.
@rusty-snake commented on GitHub (Jan 5, 2021):
Reminds me to issues where firejail can not read
/etc/passwd(e.g.firejail --noprofile --private-etc=something-without-passwd firejail --noprofile true) but then you getNo such file or directory. Here it isError …: Successwhich sounds crazy. Just to try: does it work aftersudo firecfg --clean(assuming you had runsudo firecfg). Doesfirejail --noprofile /usr/bin/keepassxcwork?Tip: Use keepassxc.profile if you talk about the "default keepassxc profile" and default.profile if you talk about default.profile. We had already confusion on sentences like "… if I start gimp with the default profile it …".
Everyone was new to linux at some point (well ok
LinuxLinus [oops 🤣 🤣] Torvalds not 😆 ) and this looks like a configuration problem.@sak96 commented on GitHub (Jan 13, 2021):
sample profile for joplin.
also make sure you go through
firecfg.use
man firecfgfor more info.@rusty-snake commented on GitHub (Mar 8, 2021):
I'm closing here due to inactivity, please fell free to request to reopen if you have more questions.
@heli-aviator commented on GitHub (Mar 8, 2021):
Thank you for all your help! I got most of it working except for Joplin.
But I have not really had time to play around with it that much.
Again thank you!
On Mon, Mar 8, 2021, 13:10 rusty-snake notifications@github.com wrote: