歡迎您光臨本站 註冊首頁

changepassword-0.9修改 samba用戶密碼,老是提示密碼錯誤

←手機掃碼閱讀     火星人 @ 2014-03-04 , reply:0

changepassword-0.9修改 samba用戶密碼,老是提示密碼錯誤

changepassword-0.9修改 samba用戶密碼,老是提示密碼錯誤  Wrong password for user.
《解決方案》

找到原因了. 是系統用戶密碼和samba用戶不一致造成的。
《解決方案》

你好,我在安裝changepassword時,出錯了,能幫我看看怎麼回事嗎?你也遇到過這樣的情況嗎?是怎麼解決的,謝謝!

這是配置選項:
./configure --enable-cgidir=/var/www/cgi-bin --enable-language=Chinese --enable-smbpasswd=/etc/samba/smbpasswd --disable-squidpasswd --enable-logo=opentech.jpg


這是make時報錯的消息:
gcc -c -o smbencrypt/SMBPasswdGen.o  smbencrypt/SMBPasswdGen.c
gcc -c -o smbencrypt/encrypt.o       smbencrypt/encrypt.c
gcc -c -o smbencrypt/md4.o           smbencrypt/md4.c
gcc -c -o smbencrypt/smbencrypt.o    smbencrypt/smbencrypt.c
gcc changepassword.c -o changepassword.cgi smbencrypt/SMBPasswdGen.o smbencrypt/md4.o smbencrypt/smbencrypt.o smbencrypt/encrypt.o -lcrypt -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DHAVE_LIBCRYPT=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_UNISTD_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_STDIO_H=1 -DHAVE_STRING_H=1 -DHAVE_STDLIB_H=1 -DHAVE_PWD_H=1 -DHAVE_ERRNO_H=1 -DHAVE_SIGNAL_H=1 -DHAVE_SHADOW_H=1 -DHAVE_TIME_H=1  -DChinese -DSMBPASSWD=\"/etc/samba/smbpasswd\" -DSQUIDPASSWD=\"no\" -DLOGO=\"opentech.jpg\" -L./smbencrypt -ldes


in file included from lang.h:27
                 from defs.h:3
                 from changepassword.c:46
languages/Chinese.h:40:7:warning: no newline at end of file
/usr/bin/ld: skipping incompatible ./smbencrypt/libdes.a when searching for -ldes
/usr/bin/ld: cannot find -ldes
collect2: ld returned 1 exit status
make: *** Error 1
《解決方案》

http://bbs.chinaunix.net/redirect.php?goto=findpost&ptid=1098863&pid=10437708

直接用系統命令就可以更改samba密碼了,只需要給一個共享目錄。
《解決方案》

回復 3# retrievalman


    缺少庫文件 吧.
yum -y install libtool-ltdl*
《解決方案》

回復 4# i770880


    這個也很好,都不用開http了
《解決方案》

I found the solution to solve the libdes.a problem in http://www.brain-cluster.com/linux/changepassword-linux-compilation/
《解決方案》

stanford101 發表於 2011-09-06 18:13 static/image/common/back.gif
I found the solution to solve the libdes.a problem in http://www.brain-cluster.com/linux/changepassw ...


正解,試驗成功,謝謝!
《解決方案》

i770880 發表於 2010-04-13 17:31 static/image/common/back.gif
http://bbs.chinaunix.net/redirect.php?goto=findpost&ptid=1098863&pid=10437708

直接用系統命令就可以 ...

這個方法我怎麼看不明白啊,你的鏈接里也找不到相關的內容,能不能講得詳細一點呢?

[火星人 ] changepassword-0.9修改 samba用戶密碼,老是提示密碼錯誤已經有1126次圍觀

http://coctec.com/docs/service/show-post-13331.html