hello rama,
the problem might be that your webserver
is running as user 'nobody' group 'nogroup'.
this would result in not being allowed
to open the passwordfile for writing.
you can check for the user as which the server is running (if you are using apache webserver) in the httpd.conf.
so, when you know which is the user do
a 'su username' and then try to enter the
same command into the console.
if this doesnt work ('fopen: Permission denied') the problem is clear...
then you could change the write-permissions
or even the owner of the password-file to the
appropriate values - but i am not sure if i
would recommend this (for security reason)!
you also could check the webservers error_log
for getting an idea whats going wrong...
hth
chris