Posted by Jason Nugent on August 14, 1998 at 13:20:22:
In Reply to: Perl/CGI: writing a new subdirectory posted by Jason B. on August 14, 1998 at 11:36:02:
: I am working with a Perl script that needs to, at a certain stage, create a new subdirectory named after a variable gathered from a previous form.
: Using the Perl function 'mkdir' fails to actually create the new subdir.
: Is there a quick and painless way to get this to happen?
: Thanks for your help!!!
In order for your CGI script to be able to create a directory (inside another directory), it needs WRITE permission on the parent directory, as user "other". Make your parent directory, and the chmod it to something at least like this:
chmod o+w dir_name
and then try it again.