Member Area   WebMail   FAQ   Search   Profile   Log in to check your private messages   Log in   Register E-RICE.net
Author Message
Domain Users
E-RICE.net Members Community Forum Index -> Old Threads Reply to topic
mwwv
PostPosted: Sun Dec 15, 2002 16:49  Reply with quote



Joined: 11 Nov 2002
Posts: 34

Hi, all Smile

How (where) can I password-protect a directory for
a USER ( mydomain.org/~username/secret_dir ) ?

I looked everywhere in the Control Panel(s) - both:
User CP and Admin CP - and there are NO options at
all to do that. In the User CP I can't even see the
created User Directories/Files - actually, neither
can I in the Admin PC ( besides the user name, and
the option to CHMOD that particular user directory )

THANKS i.A. - Monikina

PS: I also need the path to user directories: Is it

/home/virtual/sitexx/fst/home/username/public_html/directory ?
Back to top
View user's profile Send private message
Alan
PostPosted: Sun Dec 15, 2002 19:05  Reply with quote
Site Admin


Joined: 14 Aug 2002
Posts: 3031

To password-protect a user directory, do the following:
1. Create a new group & user in your site admin control panel, say,
Group: group2
User: user2
Passwd: pass2
2. upload a .htaccess file into your user directory you wish to protect, say .../newuser/public_html

AuthUserFile /home/virtual/site#/fst/var/www/.htpasswd
AuthGroupFile /home/virtual/site#/fst/var/www/.htgroup
AuthName "newuser"
AuthType Basic
<Limit GET>
require group group2
</Limit>

Now if you try to visit http://newuser.yourdomain.org, a window should pop up asking for username and password.
user: user2
pass: pass2

Yup, the path to user account is
/home/virtual/site#/fst/home/username/public_html
Back to top
View user's profile Send private message Visit poster's website
pjdesai
PostPosted: Thu Apr 20, 2006 18:48  Reply with quote



Joined: 17 Jun 2005
Posts: 12

I am trying to do the same thing. Only, I want to restrict clientonly folder under my web which is a folder under my root.

/web/clientsonly. Is this my path? I am having trouble access the path. The pop up comes up for the restricted access but it isn't accepting my passwords despite having the

.htaccess
.htpasswd files in that folder. Any clues?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic

View next topic
View previous topic
Page 1 of 1
E-RICE.net Members Community Forum Index -> Old Threads

Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



- Powered by phpBB © 2001, 2002 phpBB Group