posix_getpwnam()

From: Date: Tue, 03 Jul 2001 02:48:48 +0000
Subject: posix_getpwnam()
Groups: php.general 
Request: Send a blank email to php-general+get-55924@lists.php.net to get a copy of this message
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

« previous php.general (#55924) next »