免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1961 | 回复: 5
打印 上一主题 下一主题

[系统管理] 如何让用户通过windows修改自己的linux登录密码 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2012-06-14 16:30 |只看该作者 |倒序浏览
我建立了一个samba服务器,每个用户默认密码1234,如何让用户自己修改自己的登录samba密码?有什么工具么?

论坛徽章:
0
2 [报告]
发表于 2012-06-14 16:36 |只看该作者
swat好像可以吧,但是又说某些版本可能有漏洞
http://www.yesure.net/archives/609.html
http://blog.mdcsoft.cn/archives/201107/608.html

论坛徽章:
0
3 [报告]
发表于 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:    关闭

论坛徽章:
0
4 [报告]
发表于 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用户名和密码即可登录。

但是怎么让所有用户可以登录,只保留修改密码功能?

论坛徽章:
0
5 [报告]
发表于 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.

论坛徽章:
0
6 [报告]
发表于 2012-06-15 10:32 |只看该作者
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP