Hi,
I have a shell script that is supposed to change the permission for my WWW folder so that Apache can access them. My current script is

chown apache /var/www/*
chmod 755 /var/www/*

This works fine for /var/www/ but subdirectories of /var/www/ e.g. /var/www/html/ is still owned by samarudge (My FTP user).
How can I change this script so that it automaticaly changes the permisions for the subdirectories for Apache?
Regards,
Sam Rudge

Thanx that worked like a charm

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.