歡迎您光臨本站 註冊首頁

有沒有在redhat el5 上安裝samba的。。我是不行了。

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

有沒有在redhat el5 上安裝samba的。。我是不行了。

今天安裝了一天。。
還是不行。
哪位有成功的,指導一下,不勝感激。

主要是用window登陸后提示輸入密碼。用戶名是灰色的,密碼在哪裡設置或者修改。


LSB Version:    :core-3.1-ia32:core-3.1-noarch:graphics-3.1-ia32:graphics-3.1-noarch
Distributor ID: RedHatEnterpriseServer
Description:    Red Hat Enterprise Linux Server release 5 (Tikanga)
Release:        5
Codename:       Tikanga

這些是安裝了的軟體。
samba-3.0.23c-2
samba-common-3.0.23c-2
samba-client-3.0.23c-2
system-config-samba-1.2.39-1.el5


smb.conf

#======================= Global Settings =====================================

        workgroup = storm
        server string = DTV Liunx Service

;       security = share
;       hosts allow = 192.168.1. 192.168.2. 127.
;       load printers = yes
;   printcap name = /etc/printcap
;   printcap name = lpstat
;   printing = cups
        cups options = raw
;  guest account = pcguest
        log file = /var/log/samba/%m.log
        max log size = 50
;   password server = <NT-Server-Name>
;   realm = MY_REALM
;   passdb backend = tdbsam
;   include = /usr/local/samba/lib/smb.conf.%m
;   interfaces = 192.168.12.2/24 192.168.13.2/24
;   local master = no
;   os level = 33
;   domain master = yes
;   preferred master = yes
;   domain logons = yes
;   logon script = %m.bat
;   logon script = %U.bat
;   logon path = \\%L\Profiles\%U
;   wins support = yes
;   wins server = w.x.y.z
;   wins proxy = yes
        dns proxy = no
        security = share
        encrypt passwords = no
        guest ok = yes
        guest account = root

;  add user script = /usr/sbin/useradd %u
;  add group script = /usr/sbin/groupadd %g
;  add machine script = /usr/sbin/adduser -n -g machines -c Machine -d /dev/null -s /bin/false %u
;  delete user script = /usr/sbin/userdel %u
;  delete user from group script = /usr/sbin/deluser %u %g
;  delete group script = /usr/sbin/groupdel %g


#============================ Share Definitions ==============================

        path = /Public
;       writeable = no
;       browseable = yes
;       writeable = no
        writeable = yes
;       browseable = yes
        guest ok = yes

[ 本帖最後由 ldy2534 於 2008-6-11 16:00 編輯 ]
《解決方案》

security = share

改成
security = user
《解決方案》

如果我就是要用戶名是灰色的呢。怎麼能登陸進去。
《解決方案》

我把 ;       security = share
改成了       security = user
為什麼windows就看不到 共享的目錄了。
《解決方案》

SELINUX關掉
再查看一下日誌
《解決方案》

謝謝。。。
現在我把selinux關掉了。然後把config簡化了一下

        workgroup = storm
        server string = DTV Liunx Service
        netbios name = linux
        username map = /etc/samba/smbusers
        security = user


        path = /Public
        writeable = yes
        valid users = gaofei


但是登陸后發現用戶名還是灰色的。怎麼回事。
《解決方案》

原帖由 ldy2534 於 2008-6-11 17:16 發表 http://bbs.chinaunix.net/images/common/back.gif
謝謝。。。
現在我把selinux關掉了。然後把config簡化了一下

        workgroup = storm
        server string = DTV Liunx Service
        netbios name = linux
        username map = /et ...


請貼出所有配置文件內容
《解決方案》

屬於samba用戶驗證問題,我這個帖子10樓的貼圖說的就是這種情況。
http://bbs.chinaunix.net/thread-1098863-1-1.html
http://bbs.chinaunix.net/attachments/month_0806/20080609_2cc85e72cda6472ba7009hnSWUZYu73K.gif
《解決方案》

現在samba可以用了,但是我不知道是改什麼改好的。。。。謝謝各位。

[火星人 ] 有沒有在redhat el5 上安裝samba的。。我是不行了。已經有366次圍觀

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