Skip to content

Instantly share code, notes, and snippets.


Luka Paunović lukapaunovic

Block or report user

Report or block lukapaunovic

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:6869d3e01be95ac2daa67587898a2db5
echo "Chmoding user files to 0644..."
for i in `/usr/local/vesta/bin/v-list-sys-users | awk '{if(NR>2)print}'`; do find /home/$i/web/ -name 'public_html' -type d -print0 | xargs -0 -I {} find '{}' -type f -print0 | xargs -0 -I {} chmod 0644 {}; done
echo "Done."
echo "Chmoding user folder to 0755..."
for i in `/usr/local/vesta/bin/v-list-sys-users | awk '{if(NR>2)print}'`; do find /home/$i/web/ -name 'public_html' -type d -print0 | xargs -0 -I {} find '{}' -type d -print0 | xargs -0 -I {} chmod 0755 {}; done
echo "Done."
echo "Fixing ownership of files..."
lukapaunovic /
Created Mar 13, 2018
SUPHP cPanel open_basedir hardening
for USER in $(ls -I system /var/cpanel/users/)
if [ ! -f /home/$USER/.user.ini ]; then
sudo -H -u$USER bash -c "echo 'open_basedir = /home/$USER:/tmp:/opt/cpanel/composer/bin/composer:/var/cpanel/php/sessions/' >> /home/$USER/.user.ini"
chmod 0555 /home/$USER/.user.ini
lukapaunovic / Megatools CentOS install
Last active Oct 15, 2019
Megatools CentOS install
View Megatools CentOS install
yum -y install gcc make glib2-devel libcurl-devel openssl-devel gmp-devel tar automake autoconf libtool wget asciidoc -y
tar -xzvf megatools*.tar.gz
cd megatools*
make install
You can’t perform that action at this time.