process: implement ch{dir,root} and sres{u,g}id