Tweak Security Question How to enable but disable

jmweb

Well-Known Member
Aug 8, 2003
77
0
156
OK I want www.mydomain.com/~userid/ to work for some people but not for others. I have been fiddling with the "Exclude Protection" check mark box as well as the "Users to allow other then the domain owner" and I can not figure it out. Can someone PLEASE tell me what should be check when trying to allow the user "jmweb" to use mydomain.com/~userid/ but no one else.

cPanel.net Support Ticket Number: Yes I am brain dead right now
 

PWSowner

Well-Known Member
Nov 10, 2001
2,901
4
343
ON, Canada
I know the answer is in here somewhere because it was brought up before, but I don't remember what it was exactly. It was something like disabling it, then in the httpd.conf file you can enable it for specific users.

I'll see if I can find it later when I have more time if it's still needed.
 

Faldran

Well-Known Member
May 28, 2002
135
0
316
Ok, here is how to exculde some from being able to use ~username

Here is what to look for in httpd.conf
PHP:
# UserDir: The name of the directory which is appended onto a user's home
# directory if a ~user request is received.
#
<IfModule mod_userdir.c>
    UserDir public_html
</IfModule>
Change it to:
PHP:
# UserDir: The name of the directory which is appended onto a user's home
# directory if a ~user request is received.
#
<IfModule mod_userdir.c>
    UserDir public_html
    UserDir disabled user1 user2
</IfModule>
Just put in each username with a space that you do not wish to have access to ~username any more.. then restart httpd.