Author Topic: cpanel cwp migration change permission of /var/named and stop bind  (Read 188 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
After used the migration_cpanel_v2 tool, migrated all packages and two users, the migration runs without error but bind stoped.

The bind/named service goes down and can't start. Seen log it was perminssion denied to access /var/named/

Checking the directory permission it was changed owner to last user migrated. And the named db created have root:root permition.

Only after changed everything to named:named owner (dir and files) the bind started.

I tried /var/named with root:named and db files with root:root (maybe it's the right permission), but bind don't work. Do you know what is the right permission do theses dir and db files?

Always I run the migration permission are changed to the last user and I need to correct.

Seen the migration log, no error or something strange, only:

2024-10-15 16:17:07 rsync -av /home/.imburana20241015201542eJTBVdSkz3Yr4S/cpmove-imburana/dnszones /home/imburana/
2024-10-15 16:17:07 sed -i 's|xxx|xxx|g' /home/imburana/dnszones/*.db
2024-10-15 16:17:07 WebServers_AutoSSLmanual ssl
2024-10-15 16:17:07 WebServers_Rebuild ssl
2024-10-15 16:17:07 Copy files
2024-10-15 16:18:17 All files were copied
2024-10-15 16:18:17 grep 'imburana=' /home/.CPANELCWP_20241015201542/accounts.ini
2024-10-15 16:18:17 Adjusting user permissions

-------
Almalinux 8.10, CWP last version.


Offline
*
Re: cpanel cwp migration change permission of /var/named and stop bind
« Reply #1 on: October 16, 2024, 11:33:13 AM »
Quote
/var/named with root:named
Permissions 770

Quote
db files with root:root
Permissions 644