migrate chown to a console script