I believe it’s a duplicate for this request, which was closed for some reason.
But still, it’d be cool to have at least an instance-wide setting for default project directory. Currently, we handle it via keeping the $HOME of cryosparcuser empty, and have single softlink cryosparc_projects to the folder for the projects there, but it seems suboptimal.
Am I correctly inferring that with Default project directory you do not mean the project directory of a specific project, but a container directory that contains some project directories?
yes – in the original message, I mean the ability to change the directory that gets opened when you click “New project” button. Currently, it’s $HOME of cryosparcuser, and it’d be cool to be able to change it.
Is it correct that the CryoSPARC user’s $HOME directory is visible to all users via the web interface and serves as the default location for projects?
This seems problematic, especially when the master node is a small VM with $HOME on local (and limited) storage, rather than on a large NAS designated for projects. While I could relocate $HOME to a network share and use a symlink, exposing local dot files to all users makes me uneasy.
I’d appreciate any recommendations on handling this - specifically how can I hide the homedir from users? Thanks
@mbelgin One can set a path prefix that a CryoSPARC web app user can query with the set_user_allowed_prefix_dir() CLI function (docs).
For system-level privilege separation between CryoSPARC users, consider running multiple CryoSPARC instances under separate Linux accounts where each instance is restricted to a set of users that trust each other. Multiple CryoSPARC instance can run on the same computer if:
the computer can “handle” the combined workloads.
their designated port ranges, controlled by the cryosparc_master/install.sh --portparameter do not overlap.
no more than one CryoSPARC instance has control over any given CryoSPARC project directory.
I would love this too. Currently we have projects scattered around the disk on some systems for exactly this reason (no default “home” dir for projects)
I’m experimenting with the idea of overwriting $HOME inside config.sh (cringing). So far it seems to be working but not sure what the side effects would be. I’ll report back after running some tests etc!