Author Topic: cpanel cwp migration change permission of /var/named and stop bind  (Read 248 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

Offline
*
Re: cpanel cwp migration change permission of /var/named and stop bind
« Reply #2 on: December 04, 2024, 02:41:43 PM »
I was just about to mention this.

it happened to me when doing a migration last week, Is it something i am doing wrong or is it a small bug with the migration options cpanel to cwp?

I am looking to transfer a few sites from cpanel to cwp and want me make sure i dont kill bind again ;)

Thanks and great full as always for any helP!

Offline
*****
Re: cpanel cwp migration change permission of /var/named and stop bind
« Reply #3 on: December 04, 2024, 06:10:14 PM »
is it a small bug with the migration options cpanel to cwp?
I would guess that... I encountered some bugs a few years back that I had to manually rectify, but I'm sure the process has been refined along the way -- at least it gets you 95% of the way there!