Change file mode to be more secure