[Israel.pm] SYSTEM

Georges EL OJAIMI G-OJAIMI at cyberia.net.lb
Tue Feb 10 05:06:15 PST 2004


I am trying to set the permission of my public_html directory to 777
from a PERL script in order to create some subdirectory then reset it
back to 755.
I am always getting the there is no permission to do it?
The server is running Linux and Apache. Does anyone know how to run PERL
as superuser?

This is a sample of what I am trying to execute using the system

> chmod 777  /home/user/public_html/
> mkdir userdirectory
> cp -r /home/user/public_html/temp/
> cd userdirectory
> mkdir images
> cd images
> mkdir Big
> mkdir Small
> chmod -R 777  /home/user/public_html/userdirectory/images
> chmod 755  /home/user/public_html/

Best Regards,

More information about the Perl mailing list