1. Set Ownership to Root
Change the ownership of /var/log/plesk and its contents to root:root:
bash Copy code sudo chown -R root:root /var/log/plesk
2. Set Permissions
Set appropriate permissions for directories and files. Generally, directories should have 755 permissions and files should have 644.
Set Permissions for Directories
bash
Copy code
sudo find /var/log/plesk -type d -exec chmod 755 {} ;
Set Permissions for Files
bash
Copy code
sudo find /var/log/plesk -type f -exec chmod 644 {} ;
3. Verify Permissions
To confirm the changes, list the permissions of files and directories within /var/log/plesk:
bash Copy code ls -l /var/log | grep plesk
Summary
- Set ownership to
root:root:
bash Copy code sudo chown -R root:root /var/log/plesk
- Set permissions for directories:
bash
Copy code
sudo find /var/log/plesk -type d -exec chmod 755 {} ;
- Set permissions for files:
bash
Copy code
sudo find /var/log/plesk -type f -exec chmod 644 {} ;
- Verify the permissions:
bash Copy code ls -l /var/log | grep plesk
These commands will ensure that the /var/log/plesk directory and its contents are owned by root and have the standard permissions for directories and files. If you need further adjustments or run into issues, let me know!
Need to Verify which users can get the permissions to view the plesk panel and its permissions