Set the final permissions