/home/user/domains - the permission is wrong

SupermanInNY

Verified User
Joined
Sep 28, 2004
Messages
419
Hi All,

I just restored 500 accounts on a server and they all exhibit a problem with /home/usr/domains with wrong permissions.

As such, the error logs in the domains show:

[Mon Sep 27 20:38:21 2010] [crit] [client 46.116.233.180] (13)Permission denied: /home/user/domains/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable, referer: http://domain.com/


When I changed it manually to 755, the site came back up alive with no issues.

Perhaps 711 is also enough?

I've set up the secure_access_group=access in directadmin.conf before I uploaded all the sites,
I even ran echo "action=rewrite&value=secure_access_group" >> /usr/local/directadmin/data/task.queue

And I think that might have caused the problem in the first place.
So DA needs to fix the permission settings on that script?

But what should I do in the meantime?

chmod 755 /home/*/domains will this be the right way to go about it? (711)
I'm just worried that the chown will propagate to lower directories as I'm not sure what the outcome might be because of this.

This is the permission before the permission is set:

drwx--x--- 6 funnyay access 4096 Aug 31 11:34 domains

Please advise


Thanks,

-Alon.
 
Last edited:
You should not have .htaccess in '/home/user/domains/' but in '/home/user/domains/your-domain.tld/public_html/'.

To reset the permissions
/usr/local/directadmin/scripts/set_permissions.sh user_homes
 
You are correct, and here is the weird part:

I don't have any .file in /home/user/domains/ !!

The error message is incorrect, as this user doesn't even have .htaccess files in his account!

So it appears the error is not correctly described in the error logs.

I'm curious as to what do you have as permissions on your box for /home/user/domains ?

My machine as a brand new fresh installation so this is very weird why it is showing that way.
 
Some FTP clients doesn't show the files beginning with a 'dot'.
What could try is creating the file and leave it empty, to see if the error still is there.
 
I appreciate the support.
I'm using SSH as su and running ls -latr to view list of files with latest time order.
 
I've googled the error and seems that its indeed just a rights issue (as we could have discovered from your first post), with the wrong rights you get errors like these; it tries to look for an .htaccess for some reason.

My folders, with also secure access groups enabled:

710 /home/user/
711 /home/user/domains/
711 /home/user/domains/domain.tld/
755 /home/user/domains/domain.tld/public_html
 
I've googled the error and seems that its indeed just a rights issue (as we could have discovered from your first post), with the wrong rights you get errors like these; it tries to look for an .htaccess for some reason.

My folders, with also secure access groups enabled:

710 /home/user/
711 /home/user/domains/
711 /home/user/domains/domain.tld/
755 /home/user/domains/domain.tld/public_html

OK.. finally I'm getting somewhere :))

Now,.. there is a difference between Users and Resellers.

Users are chowned user.access whereas Resellers and Admins are User.User

Did you showed me the permission settings on a User or a Reseller/Admin?
I'm not sure if there is a difference in the permissions of the /home/user/domains but if there is, can you confirm if such exists?

Thanks for the help.

-Alon.
 
The one I posted was of a user.

Reseller (or admin are the same):

711 /home/reseller/
710 /home/reseller/domains
711 /home/reseller/domains/domain.tld/
755 /home/reseller/domains/domain.tld/public_html/
 
Back
Top