Issue when trying to Domains

Othia

New member
Joined
Jan 20, 2022
Messages
2
Hi,

New to all of this but I am having issues when trying to add a domain to my client's account (from the admin and client-side)

Email: [B]Can't open file /etc/virtual/domains for reading Can't open file /etc/virtual/domainowners for reading Errors encountered while creating domain. Not adding domain to /etc/named.conf Error Creating Domain[/B]

I'm unsure why this is happening i did look up a way to fix this but have had no solution that has worked.
Also, I have tried this thread but it seems like it was unsuccessful in fixing my issue.

thread: https://forum.directadmin.com/threads/problems-with-da-ip-problems.7347/

Kind Regards,
 
What is the output of
ls -la /etc/virtual
ls -la /etc/virtual/domains
and
ls -la /etc/virtual/domainowners
 
Output commands in order
(total 40
drwxr-xr-x 9 mail mail 4096 Feb 2 21:21 .
drwxr-xr-x 91 root root 4096 Feb 2 21:21 ..
drwxr-xr-x 2 root root 4096 Feb 2 21:18 domain.com
drwxr-xr-x 2 root root 4096 Feb 2 21:11 domainowners
-rw-r--r-- 1 mail mail 17 Feb 2 21:21 domainowners.temp
drwxr-xr-x 2 root root 4096 Feb 2 21:12 domains
drwx--x--x 3 mail mail 4096 Feb 2 21:10 mydoamin.com
drwx--x--x 3 mail mail 4096 Feb 2 21:12 mydomain.com
drwx--x--x 3 mail mail 4096 Feb 2 21:19 texzst.com
drwx--x--x 3 mail mail 4096 Feb 2 21:21 tezst.com)

(total 8
drwxr-xr-x 2 root root 4096 Feb 2 21:12 .
drwxr-xr-x 9 mail mail 4096 Feb 2 21:21 ..)

(total 8
drwxr-xr-x 2 root root 4096 Feb 2 21:11 .
drwxr-xr-x 9 mail mail 4096 Feb 2 21:21 ..)
 
This is a new install, right?
Seem you started to quickly entering domains, probably installation was still busy in the background.
The domainowners.temp should not be present there.
Also none of the files should be root root but all should be mail mail.

If you're not using the domains yet, I would suggest to remove them completely.
Check afterwards if they are gone.

So domain.com and mydomain.com and texzst.com should be gone.
Then check domainowners file if it's still there. If yes, check content. If nothing is in there, chown to mail to have it correctly.
Then try to add the domain again.

If you don't want to remove the domains, it might be harder (might also be easier).
The first check if the domainowners file have all domains and then remove the domainowners.temp file.

After that do:
Code:
cd /usr/local/directdmin/script
./set_permissions.sh all

Then check back at /etc/virtual that everything there is now owned by mail mail.
If yes, then your problem might be fixed.
 
Back
Top