I use Dropbox to sync almost all of my documents, work and personal. I also have a bunch of MATLAB routines that I'd like to sync with other users of a lab that I work at. In the lab, I only want the one folder to sync. I'm aware that I could login to my Dropbox on the lab machine and use 'Selective Sync' to only sync the one folder, but that creates the problem that other users of the lab computer would still be able to see my files by adjusting the Selective Sync settings.
The lab computer runs Linux. Another potential solution I have come up with is to install Dropbox on my own user account on the lab machine, put the files I want to share with other lab users somewhere outside of my user folder, and turn on Selective Sync. That way, the Dropbox settings should only be accessible from my account, and so no one can tinker with my selective sync settings and thus access my personal files (as Dropbox should only run when I'm logged in), but the other users would still have free access to my MATLAB routines, because I store them in a public folder.
Would this work?