From: utku guney (utkuguney@hotmail.com)
Date: Mon 29 Jan 2001 - 20:51:51 EET
merhaba...
aşağıdaki yönergelerin hepsini yapmama rağmen
parola popup ı çıkıyor ancak hata mesajı alıyorum ve dizine giremiyorum
kullandığım linux paketi SuSE 7.0
konu hakkında bilgi sahibi olanlardan acil yanıt bekliyorum...
sevgi, saygı...
Step 1
The “dbmmanage” program utility of Apache can be used to create and update
usernames and
passwords of HTTP users. This method use a DBM format files that is the
fastest mechanism
when you have thousands users to manage in your password file. First of all,
it’s important to
change the permission of this program to be (0750/-rwxr-x---), writable only
by the super-user
“root”, readable and executable by group and nothing for the others.
• To change the permissions on the “dbmmanage” program, use the following
command:
[root@deep /]# chmod 750 /usr/bin/dbmmanage
• To create a username and password, use the following command:
[root@deep /]# /usr/bin/dbmmanage /etc/httpd/.dbmpasswd adduser username
New password:.Server Software (Web Network Services) 1
CHAPTER 9
Re-type new password:
User username added with password encrypted to l4jrdAL9MH0K.
Where </etc/httpd> is the location of the password file, <.dbmpasswd> is the
name of the
password file, and <username> is the name of the user you want to add in
your “.dbmpasswd”
file.
Step 2
If you use the “dbmmanage” utility with your Apache web server to create
passwords and
usernames, don’t forget to include in your “/etc/httpd/conf/httpd.conf”
configuration file the part of
your web site you need to protect with user password authentication:
Edit the httpd.conf file (vi /etc/httpd/conf/httpd.conf) and add the
following lines to protect the
“private” directory of your web site “ona” with user password
authentication:
<Directory "/home/httpd/ona/private">
Options None
AllowOverride AuthConfig
AuthName "restricted stuff"
AuthType Basic
AuthDBUserFile /etc/httpd/.dbmpasswd
require valid-user
</Directory>
The path </home/httpd/ona/private> specifies the directory we want to
protect with a password
and username, the </etc/httpd/.dbmpasswd> specifies the location of the
password file.
NOTE: To add the DB password authentication module to your Apache Web
Server, you must be
sure to include it during the configuration time of Apache with the
following parameter “--add-module=
src/modules/standard/mod_auth_db.c”. See your Apache documentation for more
information.
Step 3
You must restart Apache web server for the changes to take effect:
• To restart Apache, use the following commands:
[root@deep /]# /etc/rc.d/init.d/httpd restart
Shutting down http: [ OK ]
Starting httpd: [ OK ]
Step 4
Finally, we must test the new protected directory named (private).
popup çıkıpta şifreyi girdiğim zaman aldığım mesaj
"Authorization Required
This server could not verify that you are authorized to access the document
requested. Either you supplied the wrong credentials (e.g., bad password),
or your browser doesn't understand how to supply the credentials required."
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
Listeden cikmak icin:
unsub linux
mesajini listeci@bilkent.edu.tr adresine gonderiniz.
Lutfen Listeci icin MIME / HTML / Turkce Aksan kullanmayin.
Listeci arayuzu: http://listweb.bilkent.edu.tr/yardim/bilkent/linux.html
Liste arsivinin adresi: http://listweb.bilkent.edu.tr/