# file permissions Linux - Windows

**URL:** https://forum.syncthing.net/t/file-permissions-linux-windows/14402
**Category:** Support
**Created:** [January 25, 2020, 10:13pm UTC](https://forum.syncthing.net/t/file-permissions-linux-windows/14402 "2020-01-25T22:13:09Z")
**Posts on this page:** 12
**Page:** 1

<div class="post-metadata">

### Author: ![gvalkov](https://forum.syncthing.net/letter_avatar_proxy/v4/letter/g/7993a0/32.png) [@gvalkov](https://forum.syncthing.net/u/gvalkov)
#### Post date: [January 25, 2020, 10:13pm UTC](https://forum.syncthing.net/t/file-permissions-linux-windows/14402/1 "2020-01-25T22:13:09Z")

</div>

1. I and syncing various Linux scripts from my Windows PC to an Ubuntu virtual machine. The files have specific permissions set in Linux, yet every time I change a file on Windows and it gets synced, the permissions are reset to non-executable. How do I tell Syncthing to respect the target permissions?

2. I also have some folders with symbolic links on Linux. No matter how I set the Windows side, Syncthing always deletes them or complains. I tried having nothing; copy of the target file; or a sim-link on Windows.

---

<div class="post-metadata">

### Author: ![AudriusButkevicius](https://forum.syncthing.net/user_avatar/forum.syncthing.net/audriusbutkevicius/32/277_2.png) [@AudriusButkevicius](https://forum.syncthing.net/u/AudriusButkevicius)
#### Post date: [January 26, 2020, 12:48am UTC](https://forum.syncthing.net/t/file-permissions-linux-windows/14402/2 "2020-01-26T00:48:53Z")

</div>

There is an ignore permissions option in folder settings which you can use if you do not wish to copy permissions.

Symlinks are not supported on windows hence should have no effect.

---

<div class="post-metadata">

### Author: ![gvalkov](https://forum.syncthing.net/letter_avatar_proxy/v4/letter/g/7993a0/32.png) [@gvalkov](https://forum.syncthing.net/u/gvalkov)
#### Post date: [January 26, 2020, 8:33am UTC](https://forum.syncthing.net/t/file-permissions-linux-windows/14402/3 "2020-01-26T08:33:39Z")

</div>

Hello Audrius! I had already checked the setting to Ignore permissions. Should I uncheck it? Or perhaps I should uncheck it and set certain permissions on Windows so that Linux will mark these scripts as executable.

---

<div class="post-metadata">

### Author: ![calmh](https://forum.syncthing.net/user_avatar/forum.syncthing.net/calmh/32/15311_2.png) [@calmh](https://forum.syncthing.net/u/calmh)
#### Post date: [January 26, 2020, 8:51am UTC](https://forum.syncthing.net/t/file-permissions-linux-windows/14402/4 "2020-01-26T08:51:59Z")

</div>

Files originating on Windows, such as these scripts after modification there, will not get executable permissions on Linux, sorry. The exception is files that are actually executable _on Windows_, such as exe files. The ignore permissions setting won’t help you in either way here.

---

<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 26, 2020, 3:57pm UTC](https://forum.syncthing.net/t/file-permissions-linux-windows/14402/6 "2020-01-26T15:57:00Z")

</div>

Wouldn’t it be more sensible to retain permissions of the existing file when receiving a file with ignore permissions set?

---

<div class="post-metadata">

### Author: ![calmh](https://forum.syncthing.net/user_avatar/forum.syncthing.net/calmh/32/15311_2.png) [@calmh](https://forum.syncthing.net/u/calmh)
#### Post date: [January 26, 2020, 5:24pm UTC](https://forum.syncthing.net/t/file-permissions-linux-windows/14402/7 "2020-01-26T17:24:18Z")

</div>

Probably.

---

<div class="post-metadata">

### Author: ![gvalkov](https://forum.syncthing.net/letter_avatar_proxy/v4/letter/g/7993a0/32.png) [@gvalkov](https://forum.syncthing.net/u/gvalkov)
#### Post date: [January 28, 2020, 6:32am UTC](https://forum.syncthing.net/t/file-permissions-linux-windows/14402/8 "2020-01-28T06:32:06Z")

</div>

I would love to see the feature to retain target file permissions added to Syncthing! Should I post it as a feature request topic or are there people monitoring support cases who consider feature requests? Thank you for suggesting it! 🙂

---

<div class="post-metadata">

### Author: ![AudriusButkevicius](https://forum.syncthing.net/user_avatar/forum.syncthing.net/audriusbutkevicius/32/277_2.png) [@AudriusButkevicius](https://forum.syncthing.net/u/AudriusButkevicius)
#### Post date: [January 28, 2020, 7:59am UTC](https://forum.syncthing.net/t/file-permissions-linux-windows/14402/9 "2020-01-28T07:59:13Z")

</div>

You should open a ticket on github, but that doesn’t mean someone will jump right on it because you need it. People work and whatever they find interesting, so if you really need this feature it’s better to open a pull request implementing it than hoping that someone will be interested in implementing it.

---

<div class="post-metadata">

### Author: ![gvalkov](https://forum.syncthing.net/letter_avatar_proxy/v4/letter/g/7993a0/32.png) [@gvalkov](https://forum.syncthing.net/u/gvalkov)
#### Post date: [January 28, 2020, 11:35am UTC](https://forum.syncthing.net/t/file-permissions-linux-windows/14402/10 "2020-01-28T11:35:26Z")

</div>

Hi Audrius, I’ll try the ticket. Does that mean that during my free time I can contribute something simple to this nice project? How does that work? First I have to learn some basics with Go programming. Then compile and test and finally offer a patch for someone to approve?

My humble experience includes a few bug fixes for the OpenWRT project, but that’s C an C++.

---

<div class="post-metadata">

### Author: ![calmh](https://forum.syncthing.net/user_avatar/forum.syncthing.net/calmh/32/15311_2.png) [@calmh](https://forum.syncthing.net/u/calmh)
#### Post date: [January 28, 2020, 11:40am UTC](https://forum.syncthing.net/t/file-permissions-linux-windows/14402/11 "2020-01-28T11:40:23Z")

</div>

You are very welcome to do so! Here are some instructions on how to get started building etc: [https://docs.syncthing.net/dev/index.html](https://docs.syncthing.net/dev/index.html)

Here is a good place to start unravelling: [https://github.com/syncthing/syncthing/blob/d91c4b010b6e01c1e544e4ffe3ed8138a56db88a/lib/model/folder\_sendrecv.go#L1483](https://github.com/syncthing/syncthing/blob/d91c4b010b6e01c1e544e4ffe3ed8138a56db88a/lib/model/folder_sendrecv.go#L1483)

---

<div class="post-metadata">

### Author: ![gvalkov](https://forum.syncthing.net/letter_avatar_proxy/v4/letter/g/7993a0/32.png) [@gvalkov](https://forum.syncthing.net/u/gvalkov)
#### Post date: [January 28, 2020, 2:25pm UTC](https://forum.syncthing.net/t/file-permissions-linux-windows/14402/12 "2020-01-28T14:25:55Z")

</div>

Thank you, Jakob! 🙂

---

<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 27, 2020, 2:36pm UTC](https://forum.syncthing.net/t/file-permissions-linux-windows/14402/13 "2020-02-27T14:36:21Z")

</div>

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