put chmod back, write log in a chmodded folder