mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #720] HOME environment variable not adjusted when using --user #492
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#492
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 @lheckemann on GitHub (Aug 16, 2016).
Original GitHub issue: https://github.com/netblue30/firejail/issues/720
@Fred-Barclay commented on GitHub (Aug 16, 2016):
I believe this from the README.md might help:
--user option was deprecated, please use "sudo -u username firejail application" instead.😸
@lheckemann commented on GitHub (Aug 16, 2016):
Oops. But I guess there's no way to give an unprivileged jail capabilities then?
@Fred-Barclay commented on GitHub (Aug 16, 2016):
I don't know about that; maybe @netblue30 or someone else with more experience could answer that better than I could. It will probably also depend on which capabilities you want to give the jail. 😉
But my guess would be
sudo -u root firejail <application>.@lheckemann commented on GitHub (Aug 16, 2016):
But I don't want to run it as root, I want to run it as an unprivileged user gaining just certain capabilities like
net_bind_service.@netblue30 commented on GitHub (Aug 17, 2016):
I had to remove --user because it was equivalent with "sudo -u username firejail application".
If you need a program to keep certain capabilities, the standard way is to use "setcap" command. Here is an example of how they do it for ping: https://linux-audit.com/linux-capabilities-hardening-linux-binaries-by-removing-setuid/
@lheckemann commented on GitHub (Aug 17, 2016):
Ah right, thanks!