Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 229 results for
htpasswd
- Page 1
Re: .htpasswd always rejected!
Hardware and Software
Linux and Unix
11 Years Ago
by ing
… contents of my .htaccess file: AuthUserFile http://mydomain.com/sandbox/.
htpasswd
AuthGroupFile /dev/null AuthName "Secure area. Please enter admin…." AuthType Basic require valid-user I meant **
htpasswd
** command. Sorry, brainfart. `
htpasswd
-c .
htpasswd
secure` And then set the password. I checked…
.htpasswd always rejected!
Hardware and Software
Linux and Unix
11 Years Ago
by ing
… and I'm having a problem where my .htaccess / .
htpasswd
protection always rejects my password. I've set permissions to…. At first I tried setting the password in the .
htpasswd
file from OS X's Terminal using the htaccess command… appreciate your feedback. Edit: I should mention that my .
htpasswd
file path is absolute. Also I want to move this…
Re: .htpasswd always rejected!
Hardware and Software
Linux and Unix
11 Years Ago
by cereal
…change it to: AuthType Basic AuthUserFile /absolute/path/to/.
htpasswd
AuthName "Secure area. Please enter admin password."…absolute path to the file, as example: `/srv/auth/.
htpasswd
`, not an url. Then as `Require user` set… the one used with the
htpasswd
command, in you example is **secure**, so **secure**…
Re: .htpasswd always rejected!
Hardware and Software
Linux and Unix
11 Years Ago
by ing
…is **/index.html** So my password would be **/sandbox/.
htpasswd
** That is what the server would consider an **absolute… filepath**, right? Since a **relative filepath** would be **./.
htpasswd
** Or am I missing some important bit of info here… the server is UNIX or Linux, but the command **
htpasswd
** should hash the same on any 'NIX system, right…
Re: .htpasswd always rejected!
Hardware and Software
Linux and Unix
11 Years Ago
by cereal
…; Running this from the path in which is saved the .
htpasswd
file, will return the correct path to set. Another alternative… second refers the server installation. The hash generated automatically by
htpasswd
is a MD5 digest, it starts by `$apr1$`, and is…
Re: .htpasswd always rejected!
Hardware and Software
Linux and Unix
11 Years Ago
by cereal
… modules: * mod_auth * mod_auth_digest * mod_aut_dbm are these enabled? Have you used **
htpasswd
** or **htdigest** to generate the password file? You wrote about…
Re: .htpasswd always rejected!
Hardware and Software
Linux and Unix
11 Years Ago
by cereal
… browser the access permission will expire. Has security measure the .
htpasswd
file should be placed out of the web root, i…
Re: htpasswd and htaccess config
Programming
Web Development
19 Years Ago
by Troy
I'm not sure why you titled your post
htpasswd
and htaccess when your question is about the basics of …
Re: added new users to htpasswd, but cant login with their creds
Hardware and Software
Linux and Unix
14 Years Ago
by james.newell
Hi ryan461, From the command you've posted it seems you're calling
htpasswd
incorrectly. Run the command "
htpasswd
-h" to determine how to use
htpasswd
correctly. If you are confident that you are using
htpasswd
correctly then please post your .
htpasswd
and .htaccess files so we can check them. Regards, James
.htaccess and .htpasswd
Programming
Web Development
12 Years Ago
by GlenRogers
… "Admin Login" AuthUserFile C:/wamp/www/diamondback/admin/.
htpasswd
require valid-user my
htpasswd
file user:password Thanks for looking...............
Re: added new users to htpasswd, but cant login with their creds
Hardware and Software
Linux and Unix
14 Years Ago
by ryan461
Well i did it the same way on another vm, which worked fine. not sure what the issue was. i first did
htpasswd
-c file user then
htpasswd
file user for additional users
Re: added new users to htpasswd, but cant login with their creds
Hardware and Software
Linux and Unix
14 Years Ago
by james.newell
Yes that correct. I was put off by "
htpasswd
passwd can" instead of "
htpasswd
file user". Can you please post your .htaccess file so we can see how you are applying the restriction.
Re: PHP functions to handle .htpasswd file
Programming
Web Development
11 Years Ago
by LastMitch
>I wrote four simple functions to manipulate .
htpasswd
file ( Apache ). Thanks for sharing. I actually like this code …snippet and the file is called: **
htpasswd
.php**. You should have included your other files from here…
HTTP Auth (.htpasswd) Not Working In CGI-BIN
Hardware and Software
Linux and Unix
16 Years Ago
by samarudge
… a .htaccess file: [CODE]AuthUserFile /var/www/cgi-bin/secure/.
htpasswd
AuthGroupFile /dev/null AuthName "uTutorial Console" AuthType Basic…
PHP functions to handle .htpasswd file
Programming
Web Development
17 Years Ago
by MitkOK
I wrote four simple functions to manipulate .
htpasswd
file ( Apache ).
automated htpasswd access?
Programming
Web Development
14 Years Ago
by Fost
… work with XML documents and one is stored behind a .
htpasswd
arrangement. I have a script which requests the xml docs…
added new users to htpasswd, but cant login with their creds
Hardware and Software
Linux and Unix
14 Years Ago
by ryan461
Im just doin some testing with a local webserver. i have one user: hybrid who can login to the webpage fine and has for a while. But when i added a few users: usa, can with simple passwords using: ubuntu #
htpasswd
passwd can thats works fine. But I cannot login with these users to the web page, it just asks again for a username password.
Re: .htpasswd always rejected!
Hardware and Software
Linux and Unix
11 Years Ago
by ing
Another consideration: 3. Although I am setting permissions to **604** does it make a difference where the file resides at the time permissions are changed? (Since I'm changing it on my computer and *then* FTP uploading it.) Just trying to think of every possible variable that might cause a problem.
Re: .htpasswd always rejected!
Hardware and Software
Linux and Unix
11 Years Ago
by ing
Thank you so much! It's great to have this working. It had been bothering me for days. Now that that the big burning question is out of the way, I have a few less important questions if you're up to it. 1. Does the login session ever expire? Or now that I've typed the password from this computer it will always let me in until I clear cookies or …
htpasswd and htaccess config
Programming
Web Development
19 Years Ago
by tyty
Hi I have attempted to install Apache/PHP on a new WinXP Home machine. I have it running succesfully on a Win98 machine. Apache works fine. PHP doesn't. I get the following Apache log error when trying [url]http://localhost/phpinfo.php[/url] - File does not exist: c:/webroot/php/php.exe/phpinfo.php. phpinfo.php is in c:/webroot. PHP …
Re: htpasswd and htaccess config
Programming
Web Development
19 Years Ago
by val542
You should take the PHP package for windows!
Re: htpasswd and htaccess config
Programming
Web Development
19 Years Ago
by Troy
val542, are you replying to tyty or me? And if to tyty, he almost certainly is using the PHP package for Windows....he can't put the Linux version on his WinXP machine. So I'm not sure what your point is. :)
Re: .htaccess and .htpasswd
Programming
Web Development
12 Years Ago
by pritaeas
You can (re)set the default file for that folder. It's usually `index.php`, so you could also upload a file named that, and do a header redirect in code.
Re: .htaccess and .htpasswd
Programming
Web Development
12 Years Ago
by GlenRogers
Brilliant! Thanks very much................
Re: automated htpasswd access?
Programming
Web Development
14 Years Ago
by Lapixx
I think that cURL functions are able to do that. You can set up a HTTP request and add parameters like a username/password combination. Take a look at the [URL="http://www.php.net/manual/en/ref.curl.php"]cURL functions reference[/URL]
Re: automated htpasswd access?
Programming
Web Development
14 Years Ago
by digital-ether
You can use file_get_contents(). Just add the user and password to the url in the form: [url]http://user:pass@example.com/path/to/file.xml[/url] Or you can specify the http header to send in the stream context parameter. eg: [CODE]$context = stream_context_create(array( 'http' => array( 'method' => 'GET', 'header' =&…
Re: automated htpasswd access?
Programming
Web Development
14 Years Ago
by Fost
Hey, Sorry about the late getting back but thanks digital-ether! The stream context worked perfectly! Had loads of fun playing with this and got the end result I needed. Great stuff! Thanks again.
Re: .htaccess not working.!
Hardware and Software
Linux and Unix
21 Years Ago
by TheOgre
… follows: [indent] user@host$
htpasswd
Usage:
htpasswd
[-cmdps] passwordfile username
htpasswd
-b[cmdps] passwordfile username password
htpasswd
-n[mdps] username
htpasswd
-nb[mdps] username password…
htaccess not password protecting directory in a web server
Hardware and Software
Linux and Unix
15 Years Ago
by amish123
…that directory. Also, i have created a .
htpasswd
file and saved it in another directory. I…please let me know where im going wrong, .
htpasswd
file contains, this line, root:7rF2c3QN5gWeh .htacces …contains the following, AuthUserFile /var/.
htpasswd
AuthType Basic AuthName "My Secret Folder" …
Re: htaccess not password protecting directory in a web server
Hardware and Software
Linux and Unix
15 Years Ago
by sknake
… What are the permissions on the .
htpasswd
file? `ls -al /var/.
htpasswd
` Do you see any error messages…var/log/apache2/`? Also the password hashes for
htpasswd
are weak, so you should change the password… Repository" AuthUserFile /etc/apache2/
htpasswd
Require valid-user </Directory>
1
2
3
4
Next
Last
Search
Search
Forums
Forum Index
Hardware/Software
Recommended Topics
Programming
Recommended Topics
Digital Media
Recommended Topics
Community Center
Recommended Topics
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Top Members
Meet People
Community Functions
DaniWeb Premium
Newsletter Archive
Markdown Syntax
Community Rules
Developer APIs
Connect API
Forum API Docs
Tools
SEO Backlink Checker
Legal
Terms of Service
Privacy Policy
FAQ
About Us
Advertise
Contact Us
© 2025 DaniWeb® LLC