Chinaunix

标题: 如何让用户通过windows修改自己的linux登录密码 [打印本页]

作者: dudry    时间: 2012-06-14 16:30
标题: 如何让用户通过windows修改自己的linux登录密码
我建立了一个samba服务器,每个用户默认密码1234,如何让用户自己修改自己的登录samba密码?有什么工具么?

作者: anonymous0502    时间: 2012-06-14 16:36
swat好像可以吧,但是又说某些版本可能有漏洞
http://www.yesure.net/archives/609.html
http://blog.mdcsoft.cn/archives/201107/608.html
作者: dudry    时间: 2012-06-14 17:19
本帖最后由 dudry 于 2012-06-14 17:30 编辑

回复 2# anonymous0502


    我按照http://www.yesure.net/archives/609.html 的方法安装了swat,也修改了/etc/xinetd.d/swat的端口901,chkconfig swat on;但是netstat查看里面没有901端口?
基于 xinetd 的服务:
        chargen-dgram:  关闭
        chargen-stream: 关闭
        cvs:            关闭
        daytime-dgram:  关闭
        daytime-stream: 关闭
        discard-dgram:  关闭
        discard-stream: 关闭
        echo-dgram:     关闭
        echo-stream:    关闭
        rsync:          关闭
        swat:           启用
        tcpmux-server:  关闭
        time-dgram:     关闭
        time-stream:    关闭
作者: dudry    时间: 2012-06-14 17:56
本帖最后由 dudry 于 2012-06-14 17:59 编辑

现在好用了。
过程如下:
1、yum install samba-swat
2、vi /etc/xinetd.d/swat
#default: on
# description: SWAT is the Samba Web Admin Tool. Use swat \
#              to configure your Samba server. To use SWAT, \
#              connect to port 901 with your favorite web browser.
service swat
{
        disable = no
        port            = 901
        socket_type     = stream
        wait            = no
        only_from       = 192.168.1.0===>这里改成可以登录的地址段
        user            = root
        server          = /usr/sbin/swat
        log_on_failure  += USERID
3、chkconfig swat on
4、service xinetd restart
5、http://192.168.1.10:901
输入root用户名和密码即可登录。

但是怎么让所有用户可以登录,只保留修改密码功能?
作者: anonymous0502    时间: 2012-06-15 10:28
本帖最后由 anonymous0502 于 2012-06-15 10:30 编辑

这玩意好像有问题,还没有弄清楚是怎么回事。
普通用户就可以登录的,即使不是samba用户只要是操作系统用户都可以登录,但是我登录后试了下修改口令好像无效啊。
而且这个连接是不加密的,没有完全弄清楚前可能还是先别用为好

普通用户好像就只有查看相关信息和修改口令的权限
Access to SWAT will prompt for a logon. If you log onto SWAT as any non-root user, the only permission allowed is to view certain aspects of configuration as well as access to the password change facility. The buttons that will be exposed to the non-root user are HOME, STATUS, VIEW, and PASSWORD. The only page that allows change capability in this case is PASSWORD.

作者: anonymous0502    时间: 2012-06-15 10:32
这有些相关链接:
http://oreilly.com/openbook/debian/book/ch10_03.html
http://www.samba.org/samba/docs/ ... ollection/SWAT.html




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2