adjust the file mode.