Editing the passwd or group is no magic and not corrupting anything. Afaik, Solaris has no ODM like AIX for example so everything is in plain files, but as you like
@jegaraman
chgrp only changes the ownership on files/directories, not that of a user or group itself.