change to chmod as privileged user.
(cherry picked from commit c17adfd8615bde1b3f2ace998bfe31c49bf7e78f)