Added a comment to the do_chmod() to mark it as a discouraged function.