update chmod permissions