Firejail and symlink pointing outside of home directory

I normally move /home/user/Downloads off /home/user to a secondary mechanical drive and then symlink it back to /home/user.
Firejail for security reasons does not allow whitelisting directories residing outside of the home directory, the simplest solution I found is mount Download directory using mount –bind.

sudo mount --bind /mnt/data/Downloads/ /home/user/Downloads

To make the change permanent edit fstab:

/mnt/data/Downloads     /home/user/Downloads   none    bind
mafio
look at the "About me" page.

Leave a Comment

Your email address will not be published. Required fields are marked *