Make the "uid" and "gid" code better. Now it can detect invalid user names/numbers.
Make the "uid" and "gid" code better. Now it can detect invalid user
names/numbers.

Reviewed by:	chris

jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase