Monday, September 26, 2022

How to change Folder and File Permission in Linux


sudo find /var/www/html -type d -exec chmod 755 {} \;

sudo find /var/www/html -type f -exec chmod 644 {} \;

sudo chmod 644 /var/www/html/textbook.php

sudo chmod 644 /var/www/html/textbook.php


sudo systemctl restart httpd

No comments:

Post a Comment

Linux command to find user who failed to login from pop/imap

 journalctl -u dovecot -g "auth failed" grep -i "auth failed" /var/log/mail.log | grep -E "imap|pop" journalct...