<table><tr><td style="">dfaure requested changes to this revision.<br />dfaure added a comment.<br />This revision now requires changes to proceed.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D6830" rel="noreferrer">View Revision</a></tr></table><br /><div><div><p>You wrote: "For the case you mentioned kauth prompt will always be triggered during opening of file for writing."</p>
<p>I disagree. My example case is a FAT permission where the user has write permissions, but chown/chgrp/chmod fails due to FAT not supporting these operations. Please test it.<br />
If you don't have a FAT partition, here's how to create one inside a file.</p>
<div class="remarkup-code-block" style="margin: 12px 0;" data-code-lang="text" data-sigil="remarkup-code-block"><pre class="remarkup-code" style="font: 11px/15px "Menlo", "Consolas", "Monaco", monospace; padding: 12px; margin: 0; background: rgba(71, 87, 120, 0.08);">dd if=/dev/zero of=/tmp/fatdevice bs=4k count=100
mkfs.vfat /tmp/fatdevice
mkdir /tmp/fat
sudo mount -o loop,uid=$UID /tmp/fatdevice /tmp/fat
ls -lad /tmp/fat
kioclient5 copy ~/.bashrc /tmp/fat/destfile</pre></div>
<p>When I do this, I get this warning from kio_file (in ~/.xsession-errors), which is, thankfully, ignored (no user message box).<br />
FileProtocol::copy: "Couldn't preserve group for '/tmp/fat/destfile'"</p>
<p>So I would say: when writing worked without privilege elevation, we should keep the current logic where chown/chgrp/chmod/utime errors are ignored.<br />
On the other hand, if writing required kauth, then we can keep using kauth for those other operations (they won't prompt).</p></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D6830" rel="noreferrer">https://phabricator.kde.org/D6830</a></div></div><br /><div><strong>To: </strong>chinmoyr, dfaure, Frameworks<br /><strong>Cc: </strong>elvisangelaccio, Frameworks<br /></div>