- 论坛徽章:
- 0
|
- [bob@monitor bob]$ /usr/bin/htpasswd /tmp/pass bob
- New password:
- Re-type new password:
- Adding password for user bob
- [bob@monitor bob]$ ll /tmp/pass
- -rw-r--r-- 1 root root 0 2月 11 01:14 /tmp/pass
- [bob@monitor bob]$
复制代码
这样都不报错?
EXIT STATUS
htpasswd returns a zero status ("true") if the username and password
have been successfully added or updated in the passwdfile. htpasswd
returns 1 if it encounters some problem accessing files, 2 if there was
a syntax problem with the command line, 3 if the password was entered
interactively and the verification entry didn't match, 4 if its opera-
tion was interrupted, 5 if a value is too long (username, filename,
password, or final computed record), and 6 if the username contains
illegal characters (see the RESTRICTIONS section).
和 man 中说的明显不一样嘛
[ 本帖最后由 ailms 于 2008-2-11 15:19 编辑 ] |
|