agarzon
Basic Pleskian
User name: agarzon
TITLE
plesk repair dns changing permissions to 0600
PRODUCT, VERSION, OPERATING SYSTEM, ARCHITECTURE
Plesk Obsidian Versión 18.0.30 CentOS Linux 8.2.2004 (Core)
PROBLEM DESCRIPTION
When I executed the command:
The file /var/named/chroot/etc/named.conf and all the zones stored in /var/named/chroot/var got set to permission 0600 which causes the DNS to stop working and not start anymore. I fixed by resetting all files to 0640
In the log you can read:
STEPS TO REPRODUCE
In a fresh installed plesk server (Centos 8 with selinux enabled)
Execute
ACTUAL RESULT
The repair tool is breaking the permissions for named configuration and all zones by setting them to 0600
EXPECTED RESULT
The repair tool should not break the permissions, if permissions must be set due security inmprovements at least sould also set the owner of those files to named:named (also plesk shoud generate the zones using the same owner, currently is generating them as root:root)
ANY ADDITIONAL INFORMATION
This was tested in a fresh installed server I setup for experimenting.
Centos 8 with selinux activated.
YOUR EXPECTATIONS FROM PLESK SERVICE TEAM
Confirm bug
TITLE
plesk repair dns changing permissions to 0600
PRODUCT, VERSION, OPERATING SYSTEM, ARCHITECTURE
Plesk Obsidian Versión 18.0.30 CentOS Linux 8.2.2004 (Core)
PROBLEM DESCRIPTION
When I executed the command:
plesk repair dns
The file /var/named/chroot/etc/named.conf and all the zones stored in /var/named/chroot/var got set to permission 0600 which causes the DNS to stop working and not start anymore. I fixed by resetting all files to 0640
In the log you can read:
Code:
│Sep 29 14:20:29 test named[5257]: open: /etc/named.conf: permission denied │
│Sep 29 14:20:29 test named[5257]: reloading configuration failed: permission denied │
│Sep 29 14:20:29 test named[5257]: received SIGHUP signal to reload zones │
│Sep 29 14:20:29 test named[5257]: loading configuration from '/etc/named.conf' │
│Sep 29 14:20:29 test named[5257]: open: /etc/named.conf: permission denied │
│Sep 29 14:20:29 test named[5257]: reloading configuration failed: permission denied │
│Sep 29 14:20:29 test systemd[1]: Reloaded Berkeley Internet Name Domain (DNS).
STEPS TO REPRODUCE
In a fresh installed plesk server (Centos 8 with selinux enabled)
Execute
plesk repair dns
and check the named service status and the syslogACTUAL RESULT
The repair tool is breaking the permissions for named configuration and all zones by setting them to 0600
EXPECTED RESULT
The repair tool should not break the permissions, if permissions must be set due security inmprovements at least sould also set the owner of those files to named:named (also plesk shoud generate the zones using the same owner, currently is generating them as root:root)
ANY ADDITIONAL INFORMATION
This was tested in a fresh installed server I setup for experimenting.
Centos 8 with selinux activated.
YOUR EXPECTATIONS FROM PLESK SERVICE TEAM
Confirm bug