Is there any way of getting around shadow passwords in PHP? I noticed that posix_getpwnam returns 'x' (and why not?) while looking at /etc/passwd where shadow passwords are involved. I made a nice hack that says that if the password = x, take a look in /etc/shadow, but is there a cleaner way of doing this? Maybe a version of posix_getpwnam that will check /etc/shadow automatically if the password = x?