added permissions script (cache, logs)