in reply to Problem with Permission

can any one tell me how to make the script to work for user.
It would help if you uploaded as small a section of "script.cgi" as will duplicate the problem. Otherwise, we can not tell where in the script it is failing with the permission error.

Another option (you do have use warnings; and use strict; don't you?) is to include print/warning/die statements as necessary to determine where the script is failing.