does anybody can help me...
the script below has been change 'chown root.root checklogin.pl'

## Start Script ###
$passwdfile = "/etc/shadow";
open (PASSWD, $passwdfile) or exit 1; # Always exit when we running not as root
 while (defined($line = <PASSWD>)) {
    chomp($line);
    ($usr,$pswd) = (split(/:/, $line))[0,1];
    last if ($usr eq $username); # We've found the user in /etc/passwd
  }
close (PASSWD);

when i'm running as root it's fine working well
but when i'm using as nobody or orginary user it's not working...
it's exit when it open $passwdfile...

how do i check the passwd file to authentication login user...?
i'm using this script for login user at web browser...

Thx

Always be



  ^»_«^
H E N G K Y


--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to