473,659 Members | 2,659 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

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
3 2295
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
>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
..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

"eastcoastg uyz" <ea***********@ hotmail.com> wrote in message
news:11******** **************@ g47g2000cwa.goo glegroups.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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
9180
by: Jean-Louis Vill | last post by:
Hi everybody, I have a personel server (I learning) with Linux I use apache, Php, Postfix. I want create with Php script a mail user by web form (yahoo like) I don't really know Php. May be someone can give me a example. I want permit at my friends to create their own email account. Thanks folks!
3
3318
by: Narlen | last post by:
Hi there, I don't know much about web design but I proudly managed to password protect a page on my site. Later I realized that everyone looking at the source in any web browser can see the password. Is there a way to improve this code so that instead of the password people viewing the page source would only see bullets instead of the characters of the password (or hide it alltogether?) Thank you for your help.
3
2839
by: MLH | last post by:
I was running the following code while logged in as a user belonging only to the Users group. Set usrNew = .CreateUser(Me!UserID) 'The user ID is in a control on the form usrNew.PID = "AAA123456789" usrNew.Password = "password" .Users.Append usrNew
6
2291
by: Frank Wilson | last post by:
Tom, It sounds to me like ASP, not ASP.NET is handling the request for WebForm1.aspx. This is most likely an IIS config issue that may have been caused by order of installation or reinstallation, or possibly even something that happened in IIS before .NET was installed. Here is a way to prove or disprove my theory:
5
6765
by: Michael Sperlle | last post by:
Is it possible? Bestcrypt can supposedly be set up on linux, but it seems to need changes to the kernel before it can be installed, and I have no intention of going through whatever hell that would cause. If I could create a large file that could be encrypted, and maybe add files to it by appending them and putting in some kind of delimiter between files, maybe a homemade version of truecrypt could be constructed. Any idea what it...
1
7170
by: selvamcbe | last post by:
sir I have a problem with installtion of phpbb 2 Forum in my website... I am having a website named http://www.clickonlinejobs.com Also i plan to include forum with it.So i have added my forum in my sub domain named http://www.forum.clickonlinejobs.com... Here is the steps what i done for installation 1.Based on Flash video tutorial which available in http://www.phpbb.com i copied my extracted phpbb files into my sub domain which...
0
1320
by: Ravi Kumar | last post by:
hi :) I was trying to develop a custom mod_python based web-site, just today. the problem I got though i liked the mod_python's feature of mapping and calling functions in python script by parsing the url. I mean, http://localhost/site/member/list?no=100 would call site/member.py page's function list with arguments no=100. Thats a feature i liked. But PROBLEM 01:
82
10009
by: happyse27 | last post by:
Hi All, I modified the user registration script, but not sure how to make it check for each variable in terms of preventing junk registration and invalid characters? Two codes below : a) html b) perl script (print and inserting into database) Cheers... Andrew
9
4239
by: happyse27 | last post by:
Hi All, In perl script(item b below) where we check if html registration form are filled in properly without blank with the necessary fields, how to prompt users that the field are incomplete or blank and then go back to main page(item a below user registration html page) always, something like goggle or msn login page function... Thanks and Best Rgds, Andrew a) script called from user registration html...
0
8427
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8332
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8746
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8627
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6179
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5649
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4175
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4335
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2750
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.