> > Is this in Linux itself? (Do you want to check the passwd > or shadow file?) > > What do you define as a valid password? > > Yes in Linux. Ok example, lets say there is a user on the > system called > "kevin" (in your honour ;-) and he has a password that is encrypted in > the shadow file. Now this script is being run by someone who claims to > be kevin, but I want to be sure, so I prompt them to keyin > their password > which I jam into a variable in the script, is there a system command > that will allow me to check the password is valid? I.E the user kevin > could logon to Linux with it.
what about using somthing like sudo. It has this functionality allready. eg Set the script to only run as root and set sudo to allow kevin to run the script once authenticated. Grant -- SLUG - Sydney Linux User's Group - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug
