# Some users are filling up the tmp directory of our lab server with R stuff. Best approach?

**URL:** <https://discourse.julialang.org/t/some-users-are-filling-up-the-tmp-directory-of-our-lab-server-with-r-stuff-best-approach/128705>\
**Category:** Offtopic\
**Created:** [May 5, 2025, 7:25am UTC](https://discourse.julialang.org/t/some-users-are-filling-up-the-tmp-directory-of-our-lab-server-with-r-stuff-best-approach/128705 "2025-05-05T07:25:54Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sylvaticus](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/sylvaticus/32/203883_2.png) [@sylvaticus](https://discourse.julialang.org/u/sylvaticus)\
**Post date:** [May 5, 2025, 7:25am UTC](https://discourse.julialang.org/t/some-users-are-filling-up-the-tmp-directory-of-our-lab-server-with-r-stuff-best-approach/128705/1 "2025-05-05T07:25:54Z")

</div>

(sorry, more R than Julia, but actually pretty general question…)

Hello, I manage a “computational server” in our lab (Ubuntu 22.04), and noticed that some users are filling up very quickly the tmp folder with terabytes of “Rtmpxxxxx” stuff. They are using a RStudio server I have provided them using their browser.

What approach would you suggest to avoid this? Set up a quota on the / filesystem (there is already one in place on /home) ? Try to understand with the affected user what the hell their script or library is doing (it is something about raster data analysis) ? cron a script to clean /tmp every X seconds ?

---

<div class="post-metadata">

**Author:** ![sylvaticus](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/sylvaticus/32/203883_2.png) [@sylvaticus](https://discourse.julialang.org/u/sylvaticus)\
**Post date:** [May 5, 2025, 9:47am UTC](https://discourse.julialang.org/t/some-users-are-filling-up-the-tmp-directory-of-our-lab-server-with-r-stuff-best-approach/128705/2 "2025-05-05T09:47:59Z")

</div>

Ended up cleaning `/tmp` based on access time (2 days) using [tmpreaper](https://manpages.ubuntu.com/manpages/jammy/man8/tmpreaper.8.html) and moving R temp directory to `~/tmp` ( `echo "TMPDIR = /home/user/tmp" > /home/user/.Renviron`)
