<div dir="ltr"><div><div><div>Thank's for the quick answer.<br><br></div>Yes, I'm using encfs locally in my Kubuntu 16.04. Some details follow below.<br><br>I'm not using any mount options. Umask under the folder returns 0002. I don't think it's an umask problem, since vim, touch and stdout redirection seem to work as expected.<br><br></div><div>How to reproduce this behavior (considering encfs installed).<br><br></div><div>$ mkdir src dst<br>$ encfs $(pwd)/src $(pwd)/dst<br></div><div>$ touch dst/a.txt<br></div><div>$ vim dst/a.txt # until now, no exec permission<br></div><div>$ kate dst/a.txt # after saving, the permission will change<br></div><div><br></div>Best regards,<br></div>Arnaldo<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Nov 7, 2016 at 4:41 PM, Dominik Haumann <span dir="ltr"><<a href="mailto:dhaumann@kde.org" target="_blank">dhaumann@kde.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Mon, Nov 7, 2016 at 2:45 PM, Arnaldo Candido Junior<br>
<<a href="mailto:arnaldoponto@gmail.com">arnaldoponto@gmail.com</a>> wrote:<br>
> Hello<br>
><br>
> I'm using encfs to encrypt some of my folders. Whenever I use Kate to edit<br>
> and save any file under these folders, the file receives exec permission.<br>
><br>
> I suppose this is a bug. Kate developers advised me to contact Kio<br>
> developers.<br>
><br>
> I would like to ask if there is any workaround to solve this.<br>
<br>
I assume you use encfs to mount a partition and then use this folder<br>
as if it were a local folder and files, right?<br>
<br>
In that case, it is unlikely that it is KIO's fault. What are your<br>
mount options? What does `umask` say in a folder in the konsole ?<br>
<br>
Btw, the file owner may change, since Kate uses QSaveFile: It first<br>
saves to a temporary file in the same folder, and on success, removes<br>
the old one and renames the new one.<br>
<br>
Greetings<br>
<span class="HOEnZb"><font color="#888888">Dominik<br>
</font></span></blockquote></div><br></div>