Page 1 of 1

After v-rebuild-user permissions are set to inaccessible

Posted: Sun Sep 24, 2017 11:29 am
by juslintek
Hi, I've noticed that after I've run yum upgrade and then v-rebuild-user.

OS:

Code: Select all

CentOS Linux release 7.4.1708 (Core)
Setup config:

Code: Select all

bash vst-install.sh --nginx yes --phpfpm yes --apache no --named yes --remi yes --vsftpd yes --proftpd no --iptables yes --fail2ban yes --quota no --exim yes --dovecot yes --spamassassin yes --clamav yes --mysql yes --postgresql no
User directories are no longer accessible and I know why:
Because user web directory path permission are set like that:

Code: Select all

751 /home/admin
751 /home/admin/web
551 /home/admin/web/domain.com
751 /home/admin/web/domain.com/public_html
751 /home/admin/web/domain.com/public_shtml
751 /home/admin/web/domain.com/private
So now I have to run

Code: Select all

sudo chmod 755 /home/admin/; sudo chmod 755 /home/admin/web/; find /home/admin/web/ -type d -exec chmod 755 {} \;
Or maybe there is a way to change server configurations, to make php-fpm socket or tcp:port connection to work with default VestaCP user path permissions?