# How change the owner of my files?

**URL:** <https://discuss.tryton.org/t/how-change-the-owner-of-my-files/5634>\
**Category:** Developer\
**Created:** [October 24, 2022, 1:45pm UTC](https://discuss.tryton.org/t/how-change-the-owner-of-my-files/5634 "2022-10-24T13:45:12Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![EnergyDeveloper](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/energydeveloper/32/2030_2.png) [@EnergyDeveloper](https://discuss.tryton.org/u/EnergyDeveloper)\
**Post date:** [October 24, 2022, 1:45pm UTC](https://discuss.tryton.org/t/how-change-the-owner-of-my-files/5634/1 "2022-10-24T13:45:12Z")

</div>

Hi, everyone !

I’ve Tryton on my Ubuntu Server. When I upload attachments (files), those files take the owner “root”, but I need a different owner. How can I change the default owner?

---

<div class="post-metadata">

**Author:** ![pokoli](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/pokoli/32/22_2.png) [@pokoli](https://discuss.tryton.org/u/pokoli)\
**Post date:** [October 24, 2022, 2:01pm UTC](https://discuss.tryton.org/t/how-change-the-owner-of-my-files/5634/2 "2022-10-24T14:01:31Z")

</div>

They owner of the files is the user running your server.  
You just need to change the user running the server and the files will be stored using this user as owner.

---

<div class="post-metadata">

**Author:** ![SISalp](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/sisalp/32/200_2.png) [@SISalp](https://discuss.tryton.org/u/SISalp)\
**Post date:** [October 24, 2022, 5:01pm UTC](https://discuss.tryton.org/t/how-change-the-owner-of-my-files/5634/3 "2022-10-24T17:01:18Z")

</div>

And there is no reason to run trytond under root and many reasons not to.
