0

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

2
Contributors
2
Replies
3
Views
8 Years
Discussion Span
Last Post by samarudge
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.