# Rmtree failed: [Errno 13] Permission denied at Finalize the deploy

**URL:** https://discourse.roots.io/t/rmtree-failed-errno-13-permission-denied-at-finalize-the-deploy/11123
**Category:** trellis
**Created:** 2017-12-12T11:54:24Z
**Posts:** 5
**Showing post:** 2 of 5

## Post 2 by @ben — 2017-12-12T15:41:08Z

Topic subject is unrelated to the actual error you received (please look a little closer)

> [@Deployment fails with Errno 13 rmtree - it’s always permissions!](https://discourse.roots.io/t/deployment-fails-with-errno-13-rmtree-it-s-always-permissions/6771):
>
> I’m running into a permissions problem on deployment: rmtree failed: [Errno 13] Permission denied: '/srv/www/ysgoltrewen/releases/20160425202926/web/app/plugins/sitepress- multilingual-cms/templates/wpml-mail/language-switcher.twig' fatal: [46.101.72.245]: FAILED! =\> {"changed": false, "failed": true} I’ve recursively [changed the permissions](http://codex.wordpress.org/Hardening_WordPress#File_Permissions) on /srv/www/ysgoltrewen/releases/ using the commands: find ./releases -type d -exec chmod 775 {} \; find ./releases -type f -exec chmod 644 {} \; Now I…

---

_[View the full topic](https://discourse.roots.io/t/rmtree-failed-errno-13-permission-denied-at-finalize-the-deploy/11123)._
