Add file and add permission for files