# Permission of file saved by Syncthing

**URL:** https://forum.syncthing.net/t/permission-of-file-saved-by-syncthing/16183
**Category:** Support
**Created:** [January 14, 2021, 7:42am UTC](https://forum.syncthing.net/t/permission-of-file-saved-by-syncthing/16183 "2021-01-14T07:42:17Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![pacioc193](https://forum.syncthing.net/user_avatar/forum.syncthing.net/pacioc193/32/9305_2.png) [@pacioc193](https://forum.syncthing.net/u/pacioc193)
#### Post date: [January 14, 2021, 7:42am UTC](https://forum.syncthing.net/t/permission-of-file-saved-by-syncthing/16183/1 "2021-01-14T07:42:18Z")

</div>

Hi to everyone,

i need some help for permission of the file create by syncthing in a Asustor NAS. All file created from syncthing are generated with pemission 644 and service start as root.

Can someone explain to me how to run as normal used and modify the umask?

---

<div class="post-metadata">

### Author: ![imsodin](https://forum.syncthing.net/user_avatar/forum.syncthing.net/imsodin/32/3317_2.png) [@imsodin](https://forum.syncthing.net/u/imsodin)
#### Post date: [January 14, 2021, 8:32am UTC](https://forum.syncthing.net/t/permission-of-file-saved-by-syncthing/16183/2 "2021-01-14T08:32:32Z")

</div>

The same way you do it for any other program you run on your NAS: Run syncthing as the desired user and usually set the `UMASK` environment variable. That may not be trivial on Asustor NAS, but that’s a question better suited to Asustor forums. As in it’s more likely someone knows about it - well hopefully 🙂

---

<div class="post-metadata">

### Author: ![system](https://forum-uploads.syncthingcdn.net/original/2X/0/0b50e0a202b22ae6a67190759e8c868805b8ed9f.png) [@system](https://forum.syncthing.net/u/system)
#### Post date: [February 13, 2021, 8:32am UTC](https://forum.syncthing.net/t/permission-of-file-saved-by-syncthing/16183/3 "2021-02-13T08:32:33Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
