change mode of tmp dir