Change mode of file.