Sounds like getpwuid() is not returning anything in the password field. I don't know why that would be. There's really nothing sudo itself should have to do for this to work (unless there is some extra library needed). - todd