We are happy to announce that Vesta is back under active development as of 25 February 2024. We are working on Vesta 2.0 and expect to release it by the end of 2024. Read more about it: https://vestacp.com/docs/vesta-2-development
How to default permissions for files / folders 644/755
How to default permissions for files / folders 644/755
Hello.
My current VPS its default rights to create a file or folder is 664/775.
Please help me how to decentralize the default each time creating a new file or folder with the right 644/755
Regards !
Duy Tới
My current VPS its default rights to create a file or folder is 664/775.
Please help me how to decentralize the default each time creating a new file or folder with the right 644/755
Regards !
Duy Tới
Re: How to default permissions for files / folders 644/755
/usr/local/vesta/func/rebuild.sh
But remember, when this file will be updated, your changes'll go away ;-(
Code: Select all
# Set folder permissions
chmod 551 $HOMEDIR/$user/web/$domain \
$HOMEDIR/$user/web/$domain/stats \
$HOMEDIR/$user/web/$domain/logs
chmod 751 $HOMEDIR/$user/web/$domain/private \= 'no' ]; then
$HOMEDIR/$user/web/$domain/cgi-bin \
$HOMEDIR/$user/web/$domain/public_html \
$HOMEDIR/$user/web/$domain/public_shtml \
$HOMEDIR/$user/web/$domain/document_errors
chmod 640 /var/log/$WEB_SYSTEM/domains/$domain.*
Re: How to default permissions for files / folders 644/755
skurudo wrote:/usr/local/vesta/func/rebuild.sh
But remember, when this file will be updated, your changes'll go away ;-(Code: Select all
# Set folder permissions chmod 551 $HOMEDIR/$user/web/$domain \ $HOMEDIR/$user/web/$domain/stats \ $HOMEDIR/$user/web/$domain/logs chmod 751 $HOMEDIR/$user/web/$domain/private \= 'no' ]; then $HOMEDIR/$user/web/$domain/cgi-bin \ $HOMEDIR/$user/web/$domain/public_html \ $HOMEDIR/$user/web/$domain/public_shtml \ $HOMEDIR/$user/web/$domain/document_errors chmod 640 /var/log/$WEB_SYSTEM/domains/$domain.*
I did not have access to file./usr/local/vesta/func/rebuild.sh
bash: /usr/local/vesta/func/rebuild.sh: Permission denied
Pls help me.
Re: How to default permissions for files / folders 644/755
Use nano or vi for make changes.
You have root rights?
You have root rights?
Re: How to default permissions for files / folders 644/755
Написал правку, которая автоматически меняет права на директорию public_html на 755 при выполнении Rebuild Web
Лично мне это нужно чтобы не вылетали crit ошибки в логе nginx при обращении в корень папки к файлу index.php моей CMS.
Code: Select all
sed -i 's/.*# Set ownership*/\t# Dico chmod fix\n\tchmod 755 $HOMEDIR\/$user\/web\/$domain\/public_html\n\t# Set ownership/' /usr/local/vesta/func/rebuild.sh
Re: How to default permissions for files / folders 644/755
Аналогичная проблема с ошибками (13: Permission denied) в логах. Установка Centos 7 + php-fpm. Все сайты на Wordpress.
Re: How to default permissions for files / folders 644/755
You can try "umask 022" for default permissions: https://www.cyberciti.biz/tips/understa ... usage.html