mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #4516] Error fcopy: invalid ownership for file /usr/local/bin/foo #2691
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#2691
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 @ghost on GitHub (Sep 8, 2021).
Original GitHub issue: https://github.com/netblue30/firejail/issues/4516
Clean Ubuntu 21.04 install - installed from repos (0.9.64) and got errors about fcopy.
Installed the deb from the official website (0.9.66) after reading a closed bug report of similar and it being fixed since.
Issue persists.
Bug and expected behavior
Things do not run. With 0.9.64 I get:
The command to exit cleanly.
No profile and disabling firejail
firejail --noprofile /path/to/programin a terminal?(What happens when you just unleash the untrusted application!?) MADNESS!
It works fine
/usr/bin/vlc)?It works fine
Reproduce
Steps to reproduce the behavior:
firejail PROGRAMERROREnvironment
lsb_release -a,screenfetchorcat /etc/os-release)firejail --version) exclusive or used git commit (git rev-parse HEAD)firejail - version 0.9.66
Additional context
Other context about the problem like related errors to understand the problem.
Checklist
https://github.com/netblue30/firejail/issues/1139)Found one from last year but it's closed.
--profile=PROFILENAMEis used to set the right profile.LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8 PROGRAMto get english error-messages.say what now
browser-allow-drm yes/browser-disable-u2f noinfirejail.configto allow DRM/U2F in browsers.not a browser issue
Log
debug output
Rather not
Relates to:
@reinerh commented on GitHub (Sep 8, 2021):
Can you please show the permissions of the file
/usr/local/bin/thing-you-do-not-trust?Does it maybe belong to a different system user?
And are you using
systemd-resolved?@ghost commented on GitHub (Sep 9, 2021):
Perms are -rwxrwxr-x owner and group are me.
Not sure about systemd-resolved. I just upgraded and frankly the only real thing I know about the changes between releases is multi GPU is completely broken.
I forgot to note (again multi GPU broken == weeks of work, debugging and my brain is mush) the thing_I_do_not_trust is a py script and it was working on Ubuntu 18.04.5. I just copied it over and got the one fcopy error. So then I updated the script and got the different but still fcopy error. So it was working for the previous version of firejail...but again my whole system worked with everything I had in (Ubuntu) 18.04...20/21.04...more regression/broken than anything.
*Update - I still have to confess ignorance about your systemd-resolved question but systemd has been causing a hell of a lot of problems...looking at jumping ship fosho.
@reinerh commented on GitHub (Sep 10, 2021):
I was asking about systemd-resolved, because I found it in the function that prints your error message:
af947720d5/src/fcopy/main.c (L321-L352)If I understand it correctly, the error can happen if
/usr/local/bin/thing-you-do-not-trustis neither a directory, file, or symlink. Or if you run it as non-root and the file has a different owner than the user running firejail. Or if you are running it as root and it's a path somewhere in/run/systemd/resolve(though that does not seem to be the case for you).@ghost commented on GitHub (Sep 11, 2021):
Gotcha. I'm mostly buried in my own projects/code/chores so I've largely tuned out changes between updates until now. I've found anything past 19.10 (in Ubuntu years) is brutally broken. Doesn't matter what distro/base/de...I'd like to know what the hell happened that everything has exploded...though I suspect for most my issues (non-firejail) it's preemptive insanity for Wayland. Despite that firejail has been working for everything else I use it for, just that one bin gives me grief. Fails with the repo package/profile, fails with the current package/profile and fails with the current package/newest-profile.
@kmk3 commented on GitHub (Jul 9, 2025):
Error messages should be clearer as of:
Closing as a duplicate of: