Print file permissions in octal form.

Closes #16943.