Hi there.....
i have a script like this

#!/usr/local/bin/php
<?
$username="blah";
$password="nblah";

$foo=posix_getpwnam($username);

echo $foo["name"];
echo $foo["passwd"];

?>

Problem when run
SETUID
if i run as root it's ok but if i run as diffrent user it's won't run
ok i know it's a problem on the permission i set is to chmod 4750 
in perl it should run as root...but in php not

so how can i fix this when i run not as root it will just be fine and give me 
the result i want....

OS
if i run on freebsd .....no problem
if i run on RedHat (shadow password) i can get any think
how do posix deal with shadow password........


Yamin Prabudy

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to