# Warning: chmod(): Operation not permitted

**URL:** <https://forum.shopware.com/t/warning-chmod-operation-not-permitted/89293>\
**Category:** Shopware 6 (English)\
**Tags:** programming\
**Created:** [21. Juli 2021 um 09:44 UTC](https://forum.shopware.com/t/warning-chmod-operation-not-permitted/89293 "2021-07-21T09:44:58Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![abinjohnedamana](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/abinjohnedamana/32/17378_2.png) [@abinjohnedamana](https://forum.shopware.com/u/abinjohnedamana)\
**Post date:** [21. Juli 2021 um 09:44 UTC](https://forum.shopware.com/t/warning-chmod-operation-not-permitted/89293/1 "2021-07-21T09:44:59Z")

</div>

Hi  
While executing the bin/build-storefront.sh build command in production template the owner of the bundle in public folder changed to the system user from www-data  
so when we deactivate the plugin it will show `chmod() operation not permitted` error message  
So what we will do to keep the folder owner www-data while executing the bin/build-storefront.sh command?

---

<div class="post-metadata">

**Author:** ![abinjohnedamana](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/abinjohnedamana/32/17378_2.png) [@abinjohnedamana](https://forum.shopware.com/u/abinjohnedamana)\
**Post date:** [21. Juli 2021 um 09:48 UTC](https://forum.shopware.com/t/warning-chmod-operation-not-permitted/89293/2 "2021-07-21T09:48:40Z")

</div>

„run it with sudo -u www-data ./bin/build-storefront.sh or use facls to set the proper user/group and so on or switch to the www-data user (su www-data) depending on your setup some of these things might work or not 🙂“ - reply from slack group
