I don't think that is possible. At least not easily....

I just symlink /tmp to /scratch on systems I use.

That way folks can get used to /scratch, but if anything has hard-coded /tmp, it will still work.

Brian Andrus

On 7/11/2019 8:19 AM, Douglas Duckworth wrote:
Hello

I am wondering if it's possible to hide a file system, that's world writable on compute node, logically within Slurm.  That way any job a user runs cannot possible access this file system.

Essentially we define $TMPDIR as /scratch, which Slurm cleans up in epilogue scripts, but some users still keep writing to /tmp instead which we do not want.  We would use tmpwatch to clean up /tmp but I would rather just prevent people from writing to it within Slurm.

Thanks
Doug

Thanks,

Douglas Duckworth, MSc, LFCS
HPC System Administrator
Scientific Computing Unit <https://scu.med.cornell.edu>
Weill Cornell Medicine
1300 York Avenue
New York, NY 10065
E: d...@med.cornell.edu <mailto:d...@med.cornell.edu>
O: 212-746-6305
F: 212-746-8690

Reply via email to