diff --git a/app/workers/attachment_cache_worker.rb b/app/workers/attachment_cache_worker.rb
index 248337bdde8d43bb9b6d5cafd512240fd78b2e73..5e8bb82d87587fa994e28a5faada9e5a57603d9e 100644
--- a/app/workers/attachment_cache_worker.rb
+++ b/app/workers/attachment_cache_worker.rb
@@ -18,6 +18,7 @@ class AttachmentCacheWorker
       FileUtils.mkdir_p(directory_root)
       FileUtils.mv(file.path, file_root)
       FileUtils.chmod 0644, file_root.to_s, verbose: true
+      FileUtils.chown_R 'portalmec', 'www-data', directory_root.to_s, verbose: true
       @attachment.update(cache_link: cache_link)
     ensure
       file.close if !file.nil? && File.exist?(file.path)