# Swap memory

**URL:** <https://community.fly.io/t/swap-memory/2749>\
**Category:** General\
**Created:** [October 7, 2021, 10:03pm UTC](https://community.fly.io/t/swap-memory/2749 "2021-10-07T22:03:55Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![rubys](https://sea1.discourse-cdn.com/fly1/user_avatar/community.fly.io/rubys/32/16907_2.png) [@rubys](https://community.fly.io/u/rubys)\
**Post date:** [May 3, 2023, 10:59pm UTC](https://community.fly.io/t/swap-memory/2749/8 "2023-05-03T22:59:06Z")

</div>

> [@scottohara](#):
>
> I understand correctly it does require you to run your containers with root privileges, which we understand is not generally recommended if security is a concern.

While the script runs initially with root privileges, once swap is set up it switches users and your deployed app will be run under the unprivileged user.

---

_[View the full topic](https://community.fly.io/t/swap-memory/2749)._
