Add permissions to file redirection