- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: htaccess password Linux
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-11-2009 03:32 AM
тАО02-11-2009 03:32 AM
htaccess password Linux
Running Redhat AS Release 4 here.....
I've setup a .htaccess file /var/www/html/.htaccess
AuthType Basic
AuthName "restricted stuff"
#AuthUserFile /home/secure/.htpasswd
AuthUserFile /var/www/html/.htpasswd
Require user duffs
I've also setup a passwords file /var/www/html/.htpasswd
duffs:zADvPn52quUMM
And I've also modified the /etc/httpd/httpd.conf file directory:
Options None
AllowOverride All
Order allow,deny
Allow from all
AuthType Basic
AuthName "restricted stuff"
#AuthUserFile /home/secure/.htpasswd
AuthUserFile /var/www/html/.htpasswd/
Require user admin
I then stopped and restarted httpd
Now... it DOES prompt for a username/password - however it never accepts it. It just keeps prompting me for a username/password. I've even deleted and recreated the password file like so:
htpasswd -c /usr/local/apache/password/passwords username
I'm 100% sure of the username/password - but it never lets me in!!!!
Any ideas?
R,
D.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-11-2009 04:39 AM
тАО02-11-2009 04:39 AM
Re: htaccess password Linux
AuthType Basic
AuthName "My Private Files"
AuthDBMUserFile /var/www/authdb
AuthDBMType DB
require valid-user
# htdbm -b -TDB authdb username password
# htdbm -l -TDB authdb
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-11-2009 05:11 AM
тАО02-11-2009 05:11 AM
Re: htaccess password Linux
I will confirm the changes in httpd.conf are required to get this function working.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-11-2009 06:23 AM
тАО02-11-2009 06:23 AM
Re: htaccess password Linux
Excuse my lack of apache familiarity here but I have made the changes that I think you were recommending (below); maybe you can confirm where I have gone wrong here?
Options None
AllowOverride All
Order allow,deny
Allow from all
AuthType Basic
AuthName "restricted stuff"
#AuthUserFile /var/www/html/.htpasswd/
AuthDBMUserFile /var/www/authdb
AuthDBMType DB
Require user duffs
#htdbm -b -TDB /var/www/authdb duffs duffs
Error opening database /var/www/authdb
APR does not understand this error code
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-12-2009 03:25 AM
тАО02-12-2009 03:25 AM
Re: htaccess password Linux
Case resolved. The modules that you recommended were not actually required and after some deliberation discovered that the configuration actually worked when I changed the '' directive to ''.
Thanks anyway for the responses.
Duffs
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-12-2009 03:49 AM
тАО02-12-2009 03:49 AM
Re: htaccess password Linux
R,
D.