mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #806] Accessing home directory of another user #547
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#547
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 @graywolf on GitHub (Sep 23, 2016).
Original GitHub issue: https://github.com/netblue30/firejail/issues/806
I'm in need of accessing home directory of another user (
/home/shared), but I have no idea how to achieve that. Tried whitelisting, didn't help. from--debugI would guess connection toCleaning /home directory, but I didn't find nothing like--no-clean-homeor something to supress that :/How can I achieve this?
I guess
mount --binding it to/mediaor somewhere should work, but is it possible without it?@Fred-Barclay commented on GitHub (Sep 23, 2016):
It's an obvious question but needs asking anyways...
You have system permissions to access that directory ordinarily, right?
If so, do you have to gain root permissions first? (
suorsudo)@graywolf commented on GitHub (Sep 24, 2016):
I complete understand, sometimes it's really something dumb like this :) But not in this case. I have permissions to access that folder, yes. Issue here mostly is that I don't even see that folder.
/homecontains only folder for current user under which I'm running the firejail. This seems to be by design (it's reasonable default), I would like to know how to suppress this behaviour though.@netblue30 commented on GitHub (Sep 24, 2016):
Will do!
@graywolf commented on GitHub (Sep 25, 2016):
@netblue30 I'm not really sure if I will try to contribute to this project (let's say it outright, my C sucks), but from looking through the source code, should it suffice to add some argument to control if
sanitize_homeshould be called (at0ecf71a884/src/firejail/restrict_users.c (L342))?So add something like
--nocleanhomecommand line argument and propagate it in there?@netblue30 commented on GitHub (Sep 25, 2016):
All set in git, use --allusers.
@graywolf commented on GitHub (Sep 25, 2016):
that was quick, thank you :)