I am on Snow Leopard. Because of a faulty script my root's PrimaryGroupID is 101 and UniqueID is 101. I have still an access to root, I can run sudo from my admin account, but the sudo and root do not have all the necessary rights obviously.
I can read dscl output, for instance:
dscl ...