由买买提看人间百态

topics

全部话题 - 话题: htpasswd
1 (共1页)
g*****e
发帖数: 6
1
来自主题: BuildingWeb版 - How to use this htpasswd ?
I want to password my directory in a unix system. I put
.htaccess file under the directory, then use htpasswd
program to set up users and passwords. The syntax taught on
some books is as follows:
htpasswd -c filename username
But when I use it accordingly, I got wrong messages. Here
are some help the htpasswd program gives:
Usage:
htpasswd help help on Usage.
htpasswd version display version
htpasswd [-i -h ] [-p] -r
-u
htpasswd [-i
m****k
发帖数: 51
2
来自主题: BuildingWeb版 - 另一个问题,关于.htpasswd的
Microbe is right. Besides that you need to put a .htaccess file
in the directory you want to protect. here is a example of .htaccess:
AuthName "Protected Directory"
AuthType Basic
AuthUserFile /usr/local/apache/conf/htpasswd.users
require valid-user
And you need to use htpasswd to create the password file
/usr/local/apache/conf/htpasswd.users which contain the users and passwords.
r***m
发帖数: 3
3
【 以下文字转载自 Internet 讨论区,原文如下 】
发信人: ruimm (爱丽士), 信区: Internet
标 题: 再此请教大虾: 用htpasswd 为网页加密时出现问题!!(in detail)
发信站: The unknown SPACE (Tue Aug 1 16:50:58 2000) WWW-POST
try to make password access for
web pages on Unix Apache Server
using
htpasswd,
but it donnot work,

问题可能是:
1. access.conf 设置有问题,
t****r
发帖数: 106
4
来自主题: BuildingWeb版 - 另一个问题,关于.htpasswd的
UNIX下(web),我看不少就是用.htaccess 和 .htpasswd好像就行了
,不过试了试没成功。不知应该怎么用?请指教
y****i
发帖数: 5690
5
来自主题: BuildingWeb版 - [转载] htpasswd
【 以下文字转载自 Security 讨论区 】
【 原文由 yongqi 所发表 】
using .htaccess and .htpasswd for protected www directory. It will prompt for
username and passwd once and the next time enters it, it will not ask for
username/pass again.
Delete files/cookies/cache doesn't help. How can I make it ask for
username/passwd every time that directory is accessed?
Thanks!
s**********i
发帖数: 711
6
来自主题: BuildingWeb版 - [转载] htpasswd

you cannot use htpasswd and force user not caching password.
you have to use some client side thing to override IE settings,
I guess.
y****i
发帖数: 5690
7
来自主题: Internet版 - [转载] htpasswd
【 以下文字转载自 Security 讨论区 】
【 原文由 yongqi 所发表 】
using .htaccess and .htpasswd for protected www directory. It will prompt for
username and passwd once and the next time enters it, it will not ask for
username/pass again.
Delete files/cookies/cache doesn't help. How can I make it ask for
username/passwd every time that directory is accessed?
Thanks!
j***y
发帖数: 87
8
in httpd.conf
AccessFileName .htaccess

AllowOverride All
and in the directory you want to protect:
.htaccss and .htpasswd
y****i
发帖数: 5690
9
来自主题: Security版 - htpasswd
using .htaccess and .htpasswd for protected www directory. It will prompt for
username and passwd once and the next time enters it, it will not ask for
username/pass again.
Delete files/cookies/cache doesn't help. How can I make it ask for
username/passwd every time that directory is accessed?
Thanks!
g*****e
发帖数: 6
10
来自主题: Unix版 - how to use htpasswd command?
It is said that htpasswd command can be used to set
passwords for user accounts. But how? what is the syntax?
thanks
l*******G
发帖数: 1191
11
来自主题: Linux版 - linux有没有类似logmein的软件
found ajaxterm a good thing if you just want to have a terminal through a webpage, i.e. you'll be able to use ssh to your server from anywhere with internet (such as public library, even if they block 22, 443, etc ports and only allow 80)
Complete Guide: http://mewbies.com/how_to_install_ajaxterm_tutorial.htm
My simple guide:
1. Install:
# Change SSH server configuration to make sure PasswordAuthentication is yes
sudo sed -i s:PasswordAuthentication.*:PasswordAuthentication yes: /etc/ssh/
sshd_... 阅读全帖
l*******G
发帖数: 1191
12
来自主题: Linux版 - 推荐ajaxterm
推荐ajaxterm:
Found ajaxterm a good thing if you just want to have a terminal through a
webpage, i.e. you'll be able to use ssh to your server from anywhere with
internet (such as public library, even if they block 22, 443, etc ports and
only allow 80)
Complete Guide:
http://mewbies.com/how_to_install_ajaxterm_tutorial.htm
My simpler guide (ubuntu)
1. Install:
# Change SSH server configuration to make sure PasswordAuthentication is yes
sudo sed -i s:PasswordAuthentication.*:PasswordAuthentication... 阅读全帖
s**********i
发帖数: 711
13
1, put all the files which should have same protection under
one directory.
2, in server configuration, make sure this directory allows
override.
3, setup username and password in a .htpasswd file, using
htpasswd program or online htpasswd generator.
4, write a .htaccess file to use this .htpassed file. google
for examples. this .htaccess file should be in same directory
as the files you want to protect.
t****r
发帖数: 106
14
来自主题: BuildingWeb版 - 另一个问题,关于.htpasswd的
不知道怎么保护目录。请指教
g**a
发帖数: 6
15
来自主题: BuildingWeb版 - 另一个问题,关于.htpasswd的
什么系统?【 在 tansir (HappyLife) 的大作中提到: 】
m*****e
发帖数: 4193
16
来自主题: BuildingWeb版 - 另一个问题,关于.htpasswd的
Sometimes you need to change the apache configuration, especially
the AllowOverride directive. If it's set to None then probably
you won't be able to use .htaccess. Check the apache FAQ online.
s**o
发帖数: 584
17
来自主题: BuildingWeb版 - 再问一个问题:password protected
Step 1. By creating a file ".htaccess" in your homework directory
(~JohnDoe/www/hwk), all files in that directory will be protected by the
password. Here is what you need to put in the .htaccess file.
AuthUserFile /your-full-path-name/.htpasswd
AuthGroupFile /dev/null
AuthName ByPassword
AuthType Basic

require user whatever

The file refers to a password file which you can put anywhere you like
in your directory system. You have to use the full path name o
j*********e
发帖数: 14
18
来自主题: BuildingWeb版 - where to find the program htpasswd?
where can i find this program? gnu? is it part of
apache?
j*********e
发帖数: 14
19
来自主题: BuildingWeb版 - where to find the program htpasswd?
well, i think it's part of apache but i just
want to run it separately. I wonna build
my webpage on server of our dept. it
seems that they don't have this program...
s**********i
发帖数: 711
20
来自主题: BuildingWeb版 - [转载] htpasswd

1, clear password: internet options->content->auto complete,
clear passwords.
and
2, don't check the "remember password" box when you sign in.
y****i
发帖数: 5690
21
来自主题: BuildingWeb版 - [转载] htpasswd
Tried 1, doesn't work.
And I'm ask what should be done on the server end to prompt username/passwd,
client side should not be able to control it. I know some other web sites that
ask me for username and passwd everytime I try to enter. I was wondering how to
realize that.
Thanks for your reply though.
m**c
发帖数: 90
22

Depends which web server you are using, if you are using IIS, you can turn off
"anonymous" access (default is on) and use either "basic authentication" (for
Netscape/Mozilla users) or "NT authentication". If you are using Apache, you
need add ".htaccess" to the directory you want to protect, and you also need
to create a password file using "htpasswd" (check apache manual).
c*****t
发帖数: 1879
23
来自主题: BuildingWeb版 - what level is your Javascript skill?
Get htpasswd file which contains
delta:INYc2qvBoKcq6
l*******9
发帖数: 177
24
There is one damn easy way to do this, as long as you can control
your httpd.conf or .htaccess, add just four lines:
AuthType basic
AuthName "pswd protect region"
AuthUserFile /path/to/htpswd
Require valid-user
in /path/to/my_protected_dir/.htaccess or in

....

of your httpd.conf....then in your shell, type
htpasswd -c /path/to/htpswd yellowchild
to generate username-password pairs...
This is by far the easiest way to fit your needs..
Other way
c***c
发帖数: 21374
25
来自主题: BuildingWeb版 - 请教SVN和Apache的配置
我SVN的配置是这样的

DAV svn
SVNParentPath /var/www/svn/
# Limit write permission to list of valid users.

# Require SSL connection for password protection.
# SSLRequireSSL
AuthType Basic
AuthName "Authorization Realm"
AuthUserFile /usr/local/share/.htpasswd
Require valid-user


我现在可以通过web的方式http://myserver/repos/myproject/去浏览
但是以这种方式去浏览的时候所有文件都不是可执行状态,比如我访问index.php,会
得到源文件,而index.php不会执行
怎么样修改配置才可以正常访问http://myserver/re
a*******t
发帖数: 85
26
use apache htpasswd tool
at allokhost.com, use can set password to any directory/webpage as he wishes
using this tool.
c*******t
发帖数: 1095
27
我想给某个网页加密码,找到的如下教程
http://www.synology.com/support/faq_show.php?lang=enu&q_id=347
但问题有2个:
1) 在我用root SSH到synology系统后, 没有这个命令 “htpasswd”。
2) 我都把所有文件建好了,进入网页也需要密码,但我的 admin.pw normal.pw的密码
都不正确。 不知道是不是因为1)所导致。
小白一枚,请达人指教
谢谢
b*k
发帖数: 27
28
来自主题: Internet版 - Re: 问个土的
you can set it by your self, check htpasswd
.htaccess
l*******G
发帖数: 1191
29
来自主题: Linux版 - 问个弱问题

实验一下这个笨方法:
在/var/www/html/webappl1/ 下放一个index.php ,内容为:
/**
* index.php
* This file simply takes any attempt to view source files and sends
* him to the /var/www/html/index.php instead
*/
header('Location: ../index.php');
?>
也可以用htpasswd 用密码保护/var/www/html/webappl1下的内容。见:
http://www.javascriptkit.com/howto/htaccess3.shtml
还可以 用 -Indexes

Options -Indexes

See:http://ubuntuforums.org/archive/index.php/t-234876.html
j*****t
发帖数: 86
30
来自主题: Security版 - 遭遇骇客,请大家指教
joomla 不及时升级,会有很多安全漏洞的。
一个简单办法是在你的administrator 目录再加一个.htaccess 和 .htpasswd, 用第二
层密码保护administrator目录不被黑客访问。
a*****1
发帖数: 11
31

username
no, you can NOT put user/pswd in .htaccess
If you use only basic authentication, you generally
want to use 'htpasswd' to generate user/pswd pairs and put
the user/pswd file in a safe place, like your ServerRoot.
and then write down something in .htaccess of your local
directory or the corresponding | section
in httpd.conf, like
AuthType Basic
AuthName "passwd protection"
AuthUserFile /etc/apache2/ht_user_pswd_file
Require valid-user
You can "Require
c*****t
发帖数: 1879
32
Download htpasswd source.
y**a
发帖数: 39
33
来自主题: Unix版 - [转载] 请教
【 以下文字转载自 Programming 讨论区 】
【 原文由 yoga 所发表 】
在perl中如何把需要从STDIN得到的parameter不从STDIN来pass给它.
For example:
call a script:
`htpasswd passwordfile userid`;
which will add userid into passwordfile and generate the encrypted password
from the STDIN.
it will run like the following:
passwd:
re-type passwd:
怎样把一个default的passwd传过去在不改变这个script的情况下.
谢谢
1 (共1页)