Change the file mode.