cd /usr/local/directadmin/scripts && ./set_permissions.sh user_homes
find /home/*/domains/*/public_html -type d -print0 | xargs -0 chmod 711
find /home/*/domains/*/public_html -type f -print0 | xargs -0 chmod 644
find /home/*/domains/*/public_html -type f -name '*.cgi*' -exec chmod 755 {} \;
find /home/*/domains/*/public_html -type f -name '*.pl*' -exec chmod 755 {} \;
find /home/*/domains/*/public_html -type f -name '*.pm*' -exec chmod 755 {} \;
cd /usr/local/directadmin/data/users && for i in `ls`; do { chown -R $i:$i /home/$i/domains/*/public_html;}; done;
cd /usr/local/directadmin/data/users && for i in `ls`; do { chown -R $i:$i /home/$i/domains/*/public_html;}; done;
chown: `\033[00m\033[01;31madmin\033[00m:\033[00m\033[01;31madmin\033[00m': invalid user
chown: `\033[01;31muser2\033[00m:\033[01;31muser2\033[00m': invalid user
chown: `\033[01;31muser3\033[00m:\033[01;31muser3\033[00m': invalid user
chown: `\033[01;31muser4\033[00m:\033[01;31muser4\033[00m': invalid user
chown: `\033[01;31muser5\033[00m:\033[01;31muser5\033[00m': invalid user
chown: `\033[01;31muser6\033[00m:\033[01;31muser6\033[00m': invalid user
chown: `\033[m:\033[m': invalid user
export PS1='\[\033[01;31m\]\u\[\033[01;33m\]@\[\033[01;36m\]\h \[\033[01;33m\]\w \[\033[01;35m\]\$ \[\033[00m\]'
export LS_OPTIONS="--human --color=always"
alias ls='ls $LS_OPTIONS'
alias ll='ls $LS_OPTIONS -l'
alias l='ls $LS_OPTIONS -Al
export LS_OPTIONS="--human --color=always"
export LS_OPTIONS="--human --color=auto"