Chinaunix首页 | 论坛 | 博客
  • 博客访问: 170080
  • 博文数量: 37
  • 博客积分: 1132
  • 博客等级: 准尉
  • 技术积分: 380
  • 用 户 组: 普通用户
  • 注册时间: 2010-11-18 16:56
个人简介

吆嘻!

文章分类

全部博文(37)

文章存档

2013年(1)

2012年(19)

2011年(17)

分类: LINUX

2012-08-17 13:11:35

错误提示:

/usr/bin/ld: cannot find -ldes
collect2: ld returned 1 exit status
make: *** [changepassword.cgi] Error 1


安装步骤:

./configure --enable-cgidir=/var/www/cgi-bin --enable-language=English --enable-smbpasswd=/etc/samba/smbpasswd --disable-squidpasswd --enable-logo=opentech.jpg


点击(此处)折叠或打开

  1. changepassword 0.9 Configuration
  2. --------------------------------
  3. Samba password file: /etc/samba/smbpasswd
  4. Squid password file: no
  5. Logo image : opentech.jpg
  6. Using Language file: languages/English.h
  7. Apache cgi-bin dir : /var/www/cgi-bin
  8. configure: creating ./config.status
  9. config.status: creating Makefile
  10. Don't forgot to copy opentech.jpg to your website root htdocs
  11. Now, type "make" and "make install"

_______________________________________________________________________

make 
报文章头部错误

解决错误:

This is due to the incompatible file named libdes.a. Below is the solution

suse10:~/changepassword-0.9 # cd  smbencrypt/
suse10:~/changepassword-0.9/smbencrypt # tar -xzvf libdes-4.04b.tar.gz
suse10:~/changepassword-0.9/smbencrypt # cd des/
suse10:~/changepassword-0.9/smbencrypt/des # make
suse10:~/changepassword-0.9/smbencrypt/des # cp libdes.a ..
suse10:~/changepassword-0.9/smbencrypt/des # cd ../..

run the "make" and "make install" again from the root of the changepassword installation source

suse10:~/changepassword-0.9 # make
suse10:~/changepassword-0.9 # make install

the compilation should be able to go thru.


访问


  1. Change Password
  2. Username:
  3. Old Password:
  4. New Password:
  5. Retype New Password:
修改用户密码,system 与smb passwd 都会修改。

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++

请注意,smbpasswd 需要在smb.conf配置文件中指定

  1. security = user
  2. # passdb backend = tdbsam
  3. smb passwd file =/etc/samba/smbpasswd

smbpasswd::

To use changepassword you will need to have:

  •  (Version 1.3.20 or later)
  •  (Version 2.95.3 or later)
  •  (Version 2.2.5 or later)
download

阅读(2001) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~