You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by "Timothy C. Fritz" <tc...@hotmail.com> on 2015/01/01 00:13:52 UTC

RE: [users@httpd] cannot figure out how to add a new user

Thank you for responding.

I have several "htaccess" files and it is unclear which one and from which
directory to post. I'm running Apache HTTP Server on a Windows system.

I have a very simple website that I've mostly used for my own internal use.
I now want to grant access to my site to a couple of friends but I don't
want to give out my credentials. My thought was to create a "guest" account
with the username set to "guest" and a corresponding password. 

I set it up Apache HTTP Server many years ago. In looking through my notes,
I apparently setup a second user (username and password) about 3 years ago.
Unfortunately, I have no recollection of how I did it, but the credentials
still work. Additionally, I have no idea how I setup my username and
password when I originally installed and configured Apache HTTP Server. 

Thank you for your help. I'm sorry I didn't state my question more clearly
the first time. Hopefully what I've added here helps to clarify.

Tim


-----Original Message-----
From: Jim Barchuk [mailto:jb@jbarchuk.com] 
Sent: Wednesday, December 31, 2014 4:50 PM
To: users@httpd.apache.org
Subject: Re: [users@httpd] cannot figure out how to add a new user

HiHi!

> I cannot figure out how to add a new user to Apache HTTP Server 2.2. I 
> want to add a "guest" account so that I don't have to give out my own 
> credentials. This is essentially what I've done and everything seems 
> to work, except I can't log into my site with these new credentials:
>
> D:\Program Files\Apache Software Foundation\Apache2.2\bin>htpasswd -cm 
> passwords guest New password: ******** Re-type new password: ******** 
> Adding password for user guest

Your Q is a little unclear. For example you said 'new' credentials, but that
doesn't state clearly whether you've ever had the htaccess system ever
working before.

With the -cm those are not 'new' credentials. (Meaning you are not 'adding
them to the htpasswd.') Man says '-c If passwordfile already exists, it is
rewritten and truncated.' Meaning it is now the -only- username/password
pair.

Beyond that, what Apache does with that pair depends on what htaccess tells
it to do.

Please post your htacces, and also describe what you 'intend' it to do.

Have a :) day!

jb

--
Jim Barchuk
jb@jbarchuk.com

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


RE: [users@httpd] cannot figure out how to add a new user

Posted by Jim Barchuk <jb...@jbarchuk.com>.
HiHi!

> I have several "htaccess" files and it is unclear which one and from which
> directory to post. I'm running Apache HTTP Server on a Windows system.

The directory that the htaccess is in, that you point the htpasswd to, is 
the directory that that new username/password will affect.

> I set it up Apache HTTP Server many years ago. In looking through my notes,
> I apparently setup a second user (username and password) about 3 years ago.
> Unfortunately, I have no recollection of how I did it, but the credentials
> still work. Additionally, I have no idea how I setup my username and
> password when I originally installed and configured Apache HTTP Server.

Actually the line in the htpasswd file with the username/password that 
-does- work -now-, you can copy/paste that to any other htpasswd file, and 
use htaccess to point to the file.

The real purpose of htpasswd is to create name/passwords -lines-. You can 
do anything you want with them. You don't -necessarily- have to use 
htpasswd to 'create the file and add the data.' Those are added features 
for convenience.

Have a :) day!

Jim

-- 
Jim Barchuk
jb@jbarchuk.com

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org