I am making a website that allows a user to login
once the login and pasword they enter is compared to the system users and
passwords. I have installed shadows, and I have the same problem as with
out shadows installed. If I am root, I can retrieve the crypted password,
if I am not root, I cannot. I need to be able to do this without being
root. What can I do to allow permissions for this operation.
return logged in as root.
---------------
login
name: :
jtswinde
Encrypted Password :
$1$cdsalhLHIKGAKjghKjgK
not as root
------------
Entry not found (No privilage????)
-------------------
Thank You
Greg Robertson
$login=$FORM{'UserName'};
$pass=$FORM{'PIN'}; print "Content-type: text/html\n\n";
print "<html>"; use Shadows; ($Sname,$Spas)=getspnam($login); if ($Sname eq "") { print "Entry not found\n"; print "(No privilage????)\n"; } else { print "\nResult of call to getspnam for $myname\:\n"; print "Login name \: $Sname\n"; print "Encrypted passwd \: $Spas\n"; } |