By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,310 Members | 1,466 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,310 IT Pros & Developers. It's quick & easy.

How do I create user name/password protect dirs on Apache server?

P: n/a
On an Apache server, I want to be able to have a user name/password
directory. I know this can be done with .htaccess, but I want to be
able to do this for multiple users. The purpose of this, is that from
the web page, I want clients to be able to have their own user name and
password, which would grant them access to their own web page which
would contain their client files for them to download.

How can this best be accomplished considering I can't be root on the
web server? I was thinking maybe this can be done in PHP? Thanks in
advance for any help/suggestions!

Aug 1 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
On 2005-08-01, eastcoastguyz <ea***********@hotmail.com> wrote:
On an Apache server, I want to be able to have a user name/password
directory. I know this can be done with .htaccess, but I want to be
able to do this for multiple users.


Why do you think .htpasswd can't contain multiple user/pass
combinations?

(Btw, a simple search in this newsgroup on password protected area will
return many other informative threads.)
--
Met vriendelijke groeten,
Tim Van Wassenhove <http://timvw.madoka.be>
Aug 1 '05 #2

P: n/a
>On an Apache server, I want to be able to have a user name/password
directory.
A directory with only names and passwords in it?
I know this can be done with .htaccess, but I want to be
able to do this for multiple users. The purpose of this, is that from
the web page, I want clients to be able to have their own user name and
password, which would grant them access to their own web page which
would contain their client files for them to download.
Give each user their own directory, with their own .htaccess file
and their own password file to go with it.

A web page to control this stuff would have to deal with access
control for uploading files (so user A can't upload stuff into
user B's directory), creating users, and changing passwords.

How you control letting user A upload a PHP page, which is then
run, but DON'T let him deface user B's pages or steal his customer
list is a problem.
How can this best be accomplished considering I can't be root on the
web server? I was thinking maybe this can be done in PHP? Thanks in
advance for any help/suggestions!


Probably all the web user directories will be owned by the Apache
user (and these users probably won't HAVE system accounts). You
won't need root to manage that.

Gordon L. Burditt
Aug 1 '05 #3

P: n/a
..htaccess would not be the best solution. I do this using a DB, an
authentication form which checks on the DB for the right user, retrieves the
user id and based on that ID displays the files of that particular user.

Cheers,

DXTrim

"eastcoastguyz" <ea***********@hotmail.com> wrote in message
news:11**********************@g47g2000cwa.googlegr oups.com...
On an Apache server, I want to be able to have a user name/password
directory. I know this can be done with .htaccess, but I want to be
able to do this for multiple users. The purpose of this, is that from
the web page, I want clients to be able to have their own user name and
password, which would grant them access to their own web page which
would contain their client files for them to download.

How can this best be accomplished considering I can't be root on the
web server? I was thinking maybe this can be done in PHP? Thanks in
advance for any help/suggestions!

Aug 1 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.