Fix files permissions in data dir