# \#gradle-3284

**URL:** https://discuss.gradle.org/tag/gradle-3284/105.md

[Latest](https://discuss.gradle.org/latest.md) · [Categories](https://discuss.gradle.org/categories.md) · [Tags](https://discuss.gradle.org/tags.md)

---

## [Copy file to UNIX group writable (664) files fails if not the owner](https://discuss.gradle.org/t/copy-file-to-unix-group-writable-664-files-fails-if-not-the-owner/8773)

<div class="topic-metadata">

**Author:** [@zachf](https://discuss.gradle.org/u/zachf)\
**Replies:** 7\
**Last updated:** [September 1, 2015, 11:16pm UTC](https://discuss.gradle.org/t/copy-file-to-unix-group-writable-664-files-fails-if-not-the-owner/8773 "2015-09-01T23:16:47Z")

</div>

The copy file actually works, but for some reason the code tries to chmod 644 the file immediately afterwards. It fails because I don't own the file and am not allowed to chmod it. task deployTest(dependsOn: jar, type…
