RussellDonders
Programmer
Hi,
I have checked the knowledge base and perldoc but cant find an understandable answer for my problem.
What does umask do, I think it will sove my problem but don't even know what it does!?? The problem I have. I have written a script that uses mkdir($dirname, 0777) to create a dir and then puts a file into it. I thought all was fine but when I went through with FTP to try and delete the dirs i created it wouldnt let me delete them "error 500 operation not permitted". I noticed that the owner was the Apache web server rather than my ftp username. I had previously (in error) used 777 instead of 0777 when creating the dirs (which led to weird values 341 i think) but these directories were able to be deleted. How do I create dirs with a script that are deletable via my account when I FTP ??
Your help is much appreciated!
I have checked the knowledge base and perldoc but cant find an understandable answer for my problem.
What does umask do, I think it will sove my problem but don't even know what it does!?? The problem I have. I have written a script that uses mkdir($dirname, 0777) to create a dir and then puts a file into it. I thought all was fine but when I went through with FTP to try and delete the dirs i created it wouldnt let me delete them "error 500 operation not permitted". I noticed that the owner was the Apache web server rather than my ftp username. I had previously (in error) used 777 instead of 0777 when creating the dirs (which led to weird values 341 i think) but these directories were able to be deleted. How do I create dirs with a script that are deletable via my account when I FTP ??
Your help is much appreciated!