check root password

hai Friends

How can i check the root password of a linux system using a c program or with some shell script... I have seen many tools like webmin that authenticates the user using the root password... How do they do that... Pls help...

Thanks in advance
Collins

http://www.unix.com/showthread.php?p=24328\#post24328