You are at a disadvantage, in that you are limited to the permissions of the UID under which your script runs. In addition to that, you probably aren't looking at the setting of umask for the UID, either. You can create a file, then change the ownership of it with the chown system call, which is documented alongside chmod.
The problem here is one of the permissions allotted to the UID under which the script runs. You probably do not have the permissions necessary to run chown. You should start by setting the umask to something like, well, 0. Read the manual page on it, either at perlfunc:umask or in the manual page for most shells that run on a UNIX system, as there is a command in these shells that manipulates the mask, as well. Odds are very good that your script is running in an environment where the umask has been set (probably in the server configuration) to a fairly restrictive default value.
--rjray
In reply to Re: create file - permission problems
by rjray
in thread create file - permission problems
by emilford
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |