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;
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;
[root@test home]# cd /domen.ru/log
-bash: cd: /domen.ru/log: No such file or directory