modify the file path and permit