Changes cache and logs permissions