bash
0
Вклад в тег
cd /home
for dir in `ls -1 `; do
mkdir -p /home/$dir/log
mkdir -p /home/$dir/html
chown -R $dir:apache $dir
chmod ug+rX $dir
done;
cd /home
for dir in `ls -1 `; do
mkdir -p /home/$dir/{html,log}
chown -R $dir:apache $dir
chmod ug+rX $dir
done;