亚洲av成人无遮挡网站在线观看,少妇性bbb搡bbb爽爽爽,亚洲av日韩精品久久久久久,兔费看少妇性l交大片免费,无码少妇一区二区三区

Chinaunix

標(biāo)題: 如何讓用戶通過windows修改自己的linux登錄密碼 [打印本頁(yè)]

作者: dudry    時(shí)間: 2012-06-14 16:30
標(biāo)題: 如何讓用戶通過windows修改自己的linux登錄密碼
我建立了一個(gè)samba服務(wù)器,每個(gè)用戶默認(rèn)密碼1234,如何讓用戶自己修改自己的登錄samba密碼?有什么工具么?

作者: anonymous0502    時(shí)間: 2012-06-14 16:36
swat好像可以吧,但是又說(shuō)某些版本可能有漏洞
http://www.yesure.net/archives/609.html
http://blog.mdcsoft.cn/archives/201107/608.html
作者: dudry    時(shí)間: 2012-06-14 17:19
本帖最后由 dudry 于 2012-06-14 17:30 編輯

回復(fù) 2# anonymous0502


    我按照http://www.yesure.net/archives/609.html 的方法安裝了swat,也修改了/etc/xinetd.d/swat的端口901,chkconfig swat on;但是netstat查看里面沒有901端口?
基于 xinetd 的服務(wù):
        chargen-dgram:  關(guān)閉
        chargen-stream: 關(guān)閉
        cvs:            關(guān)閉
        daytime-dgram:  關(guān)閉
        daytime-stream: 關(guān)閉
        discard-dgram:  關(guān)閉
        discard-stream: 關(guān)閉
        echo-dgram:     關(guān)閉
        echo-stream:    關(guān)閉
        rsync:          關(guān)閉
        swat:           啟用
        tcpmux-server:  關(guān)閉
        time-dgram:     關(guān)閉
        time-stream:    關(guān)閉
作者: dudry    時(shí)間: 2012-06-14 17:56
本帖最后由 dudry 于 2012-06-14 17:59 編輯

現(xiàn)在好用了。
過程如下:
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    時(shí)間: 2012-06-15 10:28
本帖最后由 anonymous0502 于 2012-06-15 10:30 編輯

這玩意好像有問題,還沒有弄清楚是怎么回事。
普通用戶就可以登錄的,即使不是samba用戶只要是操作系統(tǒng)用戶都可以登錄,但是我登錄后試了下修改口令好像無(wú)效啊。
而且這個(gè)連接是不加密的,沒有完全弄清楚前可能還是先別用為好

普通用戶好像就只有查看相關(guān)信息和修改口令的權(quán)限
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    時(shí)間: 2012-06-15 10:32
這有些相關(guān)鏈接:
http://oreilly.com/openbook/debian/book/ch10_03.html
http://www.samba.org/samba/docs/ ... ollection/SWAT.html




歡迎光臨 Chinaunix (http://72891.cn/) Powered by Discuz! X3.2