# Script verursacht Shopausfall durch Überschreiben von Dateirechten 666 ?

**URL:** <https://forum.shopware.com/t/script-verursacht-shopausfall-durch-uberschreiben-von-dateirechten-666/48802>\
**Category:** Administration\
**Created:** [12. Oktober 2017 um 16:38 UTC](https://forum.shopware.com/t/script-verursacht-shopausfall-durch-uberschreiben-von-dateirechten-666/48802 "2017-10-12T16:38:47Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kulli](https://avatars.discourse-cdn.com/v4/letter/k/a3d4f5/32.png) [@kulli](https://forum.shopware.com/u/kulli)\
**Post date:** [12. Oktober 2017 um 16:38 UTC](https://forum.shopware.com/t/script-verursacht-shopausfall-durch-uberschreiben-von-dateirechten-666/48802/1 "2017-10-12T16:38:47Z")

</div>

Kennt das jemand ?

Heute Nacht ging der Shop down; verursacht durch eines der Shopware-Scripte; das Script schreibt alle Rechte der Dateien im Stammverzeichnis auf 666 (statt 644)

was einen internal server error zur Folge hat.

hier die Scripte die dafür in Frage kommen ?

```
[root@hosting:/home/xxxxxxx/public_html]# grep -R "umask(" * | grep ");" | grep -v backup
engine/Library/Enlight/Template/Manager.php: $this->_file_perms = 0666 & ~umask();
engine/Library/Enlight/Template/Manager.php: $this->_dir_perms = 0777 & ~umask();
engine/Library/Enlight/Hook/ProxyFactory.php: @chmod($fileName, 0666 & ~umask());
engine/Library/Enlight/Config/Adapter/File.php: $old = umask(0);
engine/Library/Enlight/Config/Adapter/File.php: umask($old);
engine/Library/Zend/Cache/Backend/Static.php: $oldUmask = umask(0);
engine/Library/Zend/Cache/Backend/Static.php: umask($oldUmask);
engine/Library/Zend/Cache/Backend/Static.php: umask($oldUmask);
engine/Library/Smarty/sysplugins/smarty_internal_write_file.php: $old_umask = umask(0);
engine/Library/Smarty/sysplugins/smarty_internal_write_file.php: umask($old_umask);
engine/Library/Smarty/sysplugins/smarty_internal_write_file.php: umask($old_umask);
engine/Shopware/Components/HttpCache/Store.php: @chmod($path, 0666 & ~umask());
engine/Shopware/Commands/SettingsLabelsFindMissingCommand.php: $old = umask(0);
engine/Shopware/Commands/SettingsLabelsFindMissingCommand.php: umask($old);
engine/Shopware/Commands/SnippetsToIniCommand.php: $old = umask(0);
engine/Shopware/Commands/SnippetsToIniCommand.php: umask($old);
vendor/symfony/class-loader/ClassCollectionLoader.php: @chmod($file, 0666 & ~umask());
vendor/symfony/http-foundation/File/UploadedFile.php: @chmod($target, 0666 & ~umask());
vendor/symfony/http-foundation/File/File.php: @chmod($target, 0666 & ~umask());
vendor/symfony/http-kernel/CacheWarmer/CacheWarmer.php: @chmod($file, 0666 & ~umask());
vendor/symfony/http-kernel/HttpCache/Store.php: @chmod($path, 0666 & ~umask());
vendor/symfony/config/ResourceCheckerConfigCache.php: $umask = umask();
vendor/league/flysystem/src/Adapter/Local.php: $umask = umask(0);
vendor/league/flysystem/src/Adapter/Local.php: umask($umask);
vendor/league/flysystem/src/Adapter/Local.php: $umask = umask(0);
vendor/league/flysystem/src/Adapter/Local.php: umask($umask);

```

Crontask laufen keine, auch sonst keine Automatismen, die ich kenne.

Habe auch mal einen issue aufgemacht, vielleicht bringt es ja was [Shopware Issuetracker](https://issues.shopware.com/issues/SW-20191)

Jemand eine Idee ?

&nbsp;
