How can I querry Linux OS password?

How can I query Linux valid username and password.

For example: any user wants to enter the special area of my application.

Then I resrtict it to open security panel. This user is really valid or not valid user of this operating system. How can I do this in java code?

thanks...

[305 byte] By [hkocyigita] at [2007-10-2 21:50:23]
# 1
Hm, does this help? http://www-128.ibm.com/developerworks/linux/library/l-md5crypt/index.html
quittea at 2007-7-14 1:06:10 > top of Java-index,Java Essentials,Java Programming...
# 2
Thank for your help,But this application doesn't work on the system that is logined with System Administrator. So I could not access the etc\shadow file. How can I change application root as admin account to access the shadow file ?do you have any idea?Thanks.
hkocyigita at 2007-7-14 1:06:10 > top of Java-index,Java Essentials,Java Programming...
# 3
in other words you want to write an application to steal user ids and passwords from other systems.Why should we help you with your attempts at computer crime?
jwentinga at 2007-7-14 1:06:10 > top of Java-index,Java Essentials,Java Programming...
# 4
Nor forcibly. The OP is maybe trying to use the OS level user authentication in the application. http://java.sun.com/products/jaas/
BIJ001a at 2007-7-14 1:06:10 > top of Java-index,Java Essentials,Java Programming...