permissions for file written by script
Posted on 2004-10-09
I'm trying to write a perl script to write a file that will be readable by a tomcat program. The script is admin.pl in a cgi-bin directory of a domain and the file has owner fv88 and group psacln. The file I'm trying to a file (home.jsp) in a subdir of the tomcat4 directory. Files in that directory have the owner as root and group as tomcat4.
I've tried the following without success:
1. chmod home.jsp to 777. This is a plesk server with umask of 022, and plesk doesn't like 777 (but I don't know if that matters here or not).
2. added fv88 to the tomcat4 group.
How can I configure things so the script admin.pl will overwrite home.jsp?