qbittorrent: cannot access files in /run/media #4490
Replies: 3 comments 15 replies
-
@MrHerlockSholmes on Aug 29:
/dev/sdX are block devices; usually normal users cannot write to them directly Assuming that /dev/sdc is mounted at /mnt/foo and that only /mnt/foo/downloads $ sudo mkdir -p /mnt/foo/downloads /mnt/foo/secret /mnt/bar/secret
$ find /mnt/foo /mnt/bar
/mnt/foo
/mnt/foo/downloads
/mnt/foo/secret
/mnt/bar
/mnt/bar/secret
$ firejail --noprofile --quiet --whitelist=/mnt/foo/downloads find /mnt
/mnt
/mnt/foo
/mnt/foo/downloads So try adding something like the following to e.g.:
|
Beta Was this translation helpful? Give feedback.
-
Running lsblk --fs does show all seven HDDs mounted at boot time, I could also see there that "531C2F3F17265DA5" is the NTFS HDD's UUID. I gotta delve into what you mention in your last message, to see if I can find the reason why this is not working, unfortunately, I'll be away a day or two, will post my results when I return. Thanks!! |
Beta Was this translation helpful? Give feedback.
-
I’ve tried working through your instructions above, however, this is getting progressively difficult for me, as I am most definitely not a power user. I was even unable to locate the file “globals.local” anywhere in my system. However, I was successfully able to launch qbittorrent from the command line with the following command: firejail --noprofile --whitelist=/run/media/Herlock/531C2F3F17265DA5/Downloads qbittorrent So, my question is, would the above way of launching qbittorrent delinquently sandbox this application? Thanks |
Beta Was this translation helpful? Give feedback.
-
I run firejail in a Manjaro KDE Plasma desktop PC. I want to use firejail to sandbox qbittorrent, however, I am having a problem with granting access to a specific HDD, instead of unrestricted access to /mnt and /media as the "Firejail Configuration" app appears to provide as a sole option. In fact, I would ideally like to give it access to only a specific folder in a specific hard drive, for example, something like give qbittorrent access to for example "/dev/sdc/downloads" only.
My PC has several HDDs, all of them formatted as Ext4 except for one, formatted as an NTFS drive (/dev/sdc), the one I want to target. I have tried to edit the qbittorrent.profile by adding a line such as "whitelist /dev/sdc" or launching qbittorrent from the command line as "firejail --writable=/dev/sdc qbittorrent" or "firejail --whitelist=/dev/sdc qbittorrent", but nothing seems to work. The only way I can get to run qbittorrent under firejail and have access to the drive in question is by using the "Firejail Configuration Wizard", select a "Build a custom security profile" and deselect "Restrict /mnt and /media", but that gives qbittorrent unrestricted access to all drives, something that appears to defeat the whole purpose of firejailing and I do not want to do.
Can anyone provide some suggestions on how to achieve this?
Thanking all in advance for any help.
Beta Was this translation helpful? Give feedback.
All reactions