samba是一个供内部共享文件的一个服务,一般情况下需要登录到linux主机上才能修改它的密码,但是主机一般情况下是不能让别人进入的,而在windows下又没有其它方法可以修改,因此在网上使劲找,最终找到了这个程序:changpasswd,http://changepassword.sourceforge.net内可以下载,目前最新版本为0.9。
下到之后,第一件事情就是看说明,其实这个文件很简单,它是一个cgi程序,按照你自己的机器配置,编译后安装,然后就可以用了,以下将说明文件翻译如下(注:E文不好,只能翻译大概意思,如有错误,欢迎指正,花括号{}内为我的翻译):
changepassword 0.9
,,,,,,,,,,,,,
.: Description :.
`````````````
ChangePassword modifies the passwords of passwd, Samba, and Squid through the Web. All passwords are syncronized and changed in real time through browsers like Mozilla, Netscape, IE, Opera, and others.
ChangePassword 通过Web修改passwd,Samba和Squid的密码。
{所有的密码都可以通过浏览器就像Mozilla, Netscape, IE, Opera或者其它同步的克隆。}
,,,,,,,,,,,,
.: Installing :.
````````````
{ 安装 }
1) Modify conf.h
{1)修改 conf.h }
IMPORTANT
{重要}
---------
If you got messages like:
{如果你得到类似的消息:}
"Could not create unique filename for the temp file"
{“不能为temp文件创建唯一的文件名”}
"Could not rename the temporary password file"
{“不能修改临时密码文件”}
Don't use the temporary directories through partitions different than root partition.
{不要将temporary目录....(未读懂,似乎是警告不要将该目录放到root目录内)}
2) Run ./configure
{2)运行 ./configure}
configure options:
{配置参数}
--enable-cgidir=cgidir Absolute path do cgi-bin dir
{允许运行cgi的目录:完全的路径}
Default: /home/httpd/cgi-bin
{默认:/home/httpd/cgi-bin}
--enable-language=language Language to translate
{允许的语言,....}
Default: English
{默认的语言:英语}
Look in languages dir
{请查看语言子目录}
[
--enable-smbpasswd=smbpasswd Absolute path to smbpasswd PASSWORD FILE
{允许修改samba密码,完全的路径}
Default: /etc/smbpasswd
--disable-smbpasswd Don't update Samba passwords
{禁止修改samba密码}
]
[
--enable-squidpasswd=squidpasswd Absolute path to Squid PASSWORD FILE
{允许修改squid密码,完全的路径}
Default: /etc/squid/passwd ],
--disable-squidpasswd Don't update Squit passwords
{禁止修改squid密码}
]
--enable-logo=imagefilename Web Logo Image
{logo图片}
Default: Disabled
Examples:
{示例)
./configure --enable-cgidir=/var/www/cgi-bin --enable-language=Portuguese --enable-smbpasswd=/usr/local/samba/private/smbpasswd --enable-squidpasswd=/etc/squid/passwd --enable-logo=opentech.jpg
{以上示例设定了cgi目录、所选择语言为 Portuguese,设定的samba密码文件所在、squid密码文件所在,logo图片文件所在}
./configure --enable-cgidir=/var/www/cgi-bin --enable-language=Portuguese --disable-smbpasswd --enable-squidpasswd=/etc/squid/passwd --enable-logo=opentech.jpg
{衣衫示例设定了cgi目录、语言种类、禁止修改samba密码、允许修改squid密码、logo图片文件所在)
3) type "make"
{输入 make}
4) type "make install"
{输入 make install}
5) copy your logo image filename (if set by --enable-logo option) to your website root htdocs
{拷贝你的图片文件到你的站点的根目录如果你设定了logo图片文件}
,,,,,,,,,,,,,
.: Translating :.
`````````````
语言翻译
1) Copy English.h to Your_language.h
{拷贝English.h 到 Your_language.h}
2) Translate
{翻译}
3) Send me Your_Language.h
{将Your_language.h发送给我}
,,,,,,,,,,,,,,,,,,,,,,,,,,,,
.: Credits and Special thanks :.
````````````````````````````
以下为为了本程序做出的贡献的人及地址
Parts of the program are taken from:
Gerald Carter <jerry@samba.org> smbencrypt package
Knut Grahlmann <Knut.Grahlmann@bigfoot.com> frgpasswd.c
Pedro L. Orso <orso@onda.com.br> chetcpasswd.c
Peter Orbaek <poe@daimi.aau.dk> passwd.c
Salvatore Valente <svalente@mit.edu> setpwnam.c
Languages:
Anders Riis Espersen <aresp@agurk.dk> Danish
Daniel Ruus <daniel@ruus.freeserve.co.uk> Swedish
Emanuel Quass <emanuel.quass@temic.com> German
Fernando Rodriguez <frodmda@hotmail.com> Spanish
Florin Grosu <florin.grosu@igeoss.com> Romanian
Franis Goudal <goudalf@free.fr> Francais
Jan Slesinger <honza@beyondd.com> Czech
Jaroslaw Danielski <jd@telvinet.pl> Polish
Joseph van Alphen <joseph@vddonk.nl> Holland
Liaobin <liao_bin@371.net> Chinese
Massimiliano Adamo <maxadamo@iol.it> Italian
P. Toth Zsigmond <zsigmond@lanten.hu> Hungarian
Peter de Vries <peter@pdv.xs4all.nl> Dutch
Rok Potocnik <rok@s-je.sik.si> Slovenian
Turnhauser Laszlo <tusi@opticom.hu> Hungarian
Suggestions, Corrections and/or Fixes:
Benjamin Lee <benjamin.lee@realthought.net>
Dirk Schwier <info@raumhochdrei.de>
Jeff Nelson <jtnelson@emirates.net.ae>
Scott Cottrell <scottrell@customresearch.com>
Victor Hugo dos Santos <victorhugops@wordcom.cl>
,,,,,,,,,,,,,,,
.: Changes/Fixes :.
```````````````
Please take a look at the "ChangeLog" to check the latest
fixes/new features.
,,,,,,,,,
.: Contact :.
`````````
You can reach me at: <vinicius@opentech.inf.br>
You can get the lastest version of changepassword at:
http://changepassword.sourceforge.net
Vinicius
..................................................................................
按照你自己机器的配置,将程序重新编译一遍,然后安装程序,这样在你自己设定的cgi目录内将出现一个changepassword.cgi程序,有了它,通过浏览器就可以修改你的密码了。
在我公司的内部网络里,只有一台服务器是linux,其它的全部是windows,而且大部分同事只会简单的windows操作,对linux基本上不知道,有了这个程序,他们就可以通过web页修改samba密码,就再也不用我一个一个的替他们改了。

