change the file mode.