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

Chinaunix

標題: 求教:samba服務器,SMBclient可以使用,XP下不可連接 [打印本頁]

作者: xjianzy    時間: 2008-10-06 11:43
標題: 求教:samba服務器,SMBclient可以使用,XP下不可連接
公司新增一臺SMB服務器,smb.conf 內容如下:
[global]

   workgroup = WORKGROUP
  server string = FILE server
  hosts allow = 192.168.0. 127.
  guest account = pcguest
  log file = /var/log/samba/%m.log
  max log size = 0
  security = user
  encrypt passwords = no
  smb passwd file = /etc/samba/smbpasswd
  local master = no
  os level = 33
  domain master = no
  preferred master = no

[homes]
comment = Home Directories
browseable = no
writable = yes
valid users = %S

[share]
comment = share
browseable = yes
path = /share/share
guest ok = yes

[usersdir]
comment = Test's Service
path = /home/testu1
valid users = testu1
public = no
writable = yes
完成后,在本機使用smbclient //127.0.0.1/usersdir -U testu1然后輸入密碼后可以使用,但是在XP下卻不能訪問,提示如下:
我將security的級別設成share后,XP系統(tǒng)可以訪問[share],但是不能訪問[usersdir].登錄框的用戶名是灰色的,不可修改
請教各位大俠給個方案~~~

smb.jpg (18.6 KB, 下載次數: 23)

smb.jpg

作者: gg-jgs    時間: 2008-10-06 14:32
試試用用戶名直接訪問
作者: lazyfai    時間: 2008-10-06 14:38
有沒有用 smbpasswd -a [用戶ID] 的方式加入 samba 口令?
security = user 時是必需要有的。
又或者可以加上
map to guest = bad password
沒有口令的會自動變 guest
作者: xjianzy    時間: 2008-10-06 15:10
有做過smbpasswd -a的動作~~可問題還是依舊.
作者: xjianzy    時間: 2008-10-07 09:47
加上map to guest = bad password后,問題依舊~~~~
作者: qingcai5647    時間: 2008-10-07 20:28
hosts allow = 192.168.0. 127.
hosts allow 后面有加點嗎 我不清楚 你去除試試 或者你把這一行注銷試試
作者: qingcai5647    時間: 2008-10-07 20:38
還有 你應該用testparm檢查一下/etc/samba/smb.conf的語法配置有沒有出錯
我剛才實驗了下 好像hosts allow 后面不加點吧
作者: jerrywjl    時間: 2008-10-07 23:20
我今天也碰到客戶這樣一個問題。
這哥們原來裝一個RHEL4.0的系統(tǒng),然后客戶端是一臺加入到域內的XP,開始他XP能夠訪問samba;
結果后來他把RHEL4.0換成RHEL4.7,samba配置基本一樣,但從Windows訪問就不行了。報錯和上面一樣,我已經讓他確保防火墻,selinux都關閉,權限也檢查過,而且從RH本地smbclient都可以看到訪問內容,而windows不管重啟多少次就是不成功。
我認為問題不是在RH上,應該是在windows上,如果那個xp是工作組的機器就沒那么麻煩,如果是域的話,鬼知道會在哪里保存以前的訪問的一些機器驗證信息什么的。哎,明天還要接著debug。

我現(xiàn)在模擬他的過程在做試驗,我倒還真想看看情況是否像他的那樣。
作者: nhuczp    時間: 2008-10-07 23:30
慢慢調吧.

我用來碰到過性能很差的問題.
作者: lazyfai    時間: 2008-10-07 23:53
RHEL 4.6 中的 samba 作了一個大更新,由 3.0.10 升到 3.0.24a, 當中有一些配置的默認值改變了,
可以看一下 testparm -v ,或者找 samba 的 changelog 看看是那一些吧。

原帖由 jerrywjl 于 2008-10-7 23:20 發(fā)表
我今天也碰到客戶這樣一個問題。
這哥們原來裝一個RHEL4.0的系統(tǒng),然后客戶端是一臺加入到域內的XP,開始他XP能夠訪問samba;
結果后來他把RHEL4.0換成RHEL4.7,samba配置基本一樣,但從Windows訪問就不行了。 ...

作者: jerrywjl    時間: 2008-10-08 00:05
原帖由 lazyfai 于 2008-10-7 23:53 發(fā)表
RHEL 4.6 中的 samba 作了一個大更新,由 3.0.10 升到 3.0.24a, 當中有一些配置的默認值改變了,
可以看一下 testparm -v ,或者找 samba 的 changelog 看看是那一些吧。




試驗結果剛剛出來,盡管RHEL4U6或者U7對SAMBA有大更改,但是沒有任何問題。我每次訪問都能成功。版本更換肯定不是原因。

肯定是那個哥們的環(huán)境或者是操作導致。

我百分百肯定我的配置是對的。
作者: xjianzy    時間: 2008-10-08 15:48
原帖由 qingcai5647 于 2008-10-7 20:28 發(fā)表
hosts allow = 192.168.0. 127.
hosts allow 后面有加點嗎 我不清楚 你去除試試 或者你把這一行注銷試試

   

我把這一行注釋了,情況依舊,應該不是這個問題.另外,如果我將訪問級別調整到share,XP是可以訪問的``
作者: jerrywjl    時間: 2008-10-08 16:11
原帖由 xjianzy 于 2008-10-8 15:48 發(fā)表

   

我把這一行注釋了,情況依舊,應該不是這個問題.另外,如果我將訪問級別調整到share,XP是可以訪問的``



也不是這個問題,因為我的機器級別就是user一樣沒有問題,share的安全性太低。不過這個情況不好說,誰知道他的windows上有什么問題呢?!
作者: xjianzy    時間: 2008-10-09 11:24
原帖由 jerrywjl 于 2008-10-7 23:20 發(fā)表
我今天也碰到客戶這樣一個問題。
這哥們原來裝一個RHEL4.0的系統(tǒng),然后客戶端是一臺加入到域內的XP,開始他XP能夠訪問samba;
結果后來他把RHEL4.0換成RHEL4.7,samba配置基本一樣,但從Windows訪問就不行了。 ...



我的XP就是在工作組的.XP系統(tǒng)應該是沒有問題的,訪問別的共享資源(WINDOWS下的)都是沒有問題的``
作者: xjianzy    時間: 2008-10-09 11:27
下面是我testparm -v的結果```



[root@xyu ~]# testparm -v
Load smb config files from /etc/samba/smb.conf
Processing section "[homes]"
Processing section "[share]"
Processing section "[Profiles]"
Processing section "[usersdir]"
Loaded services file OK.
Server role: ROLE_STANDALONE
Press enter to see a dump of your service definitions

[global]
        dos charset = CP850
        unix charset = UTF-8
        display charset = LOCALE
        workgroup = WORKGROUP
        realm =
        netbios name = XYU
        netbios aliases =
        netbios scope =
        server string = FILE server
        interfaces =
        bind interfaces only = No
        security = USER
        auth methods =
        encrypt passwords = No
        update encrypted = No
        client schannel = Auto
        server schannel = Auto
        allow trusted domains = Yes
        map to guest = Bad Password
        null passwords = No
        obey pam restrictions = No
        password server = *
        smb passwd file = /etc/samba/smbpasswd
        private dir = /etc/samba
        passdb backend = smbpasswd
        algorithmic rid base = 1000
        root directory =
        guest account = pcguest
        enable privileges = Yes
        pam password change = No
        passwd program =
        passwd chat = *new*password* %n\n *new*password* %n\n *changed*
        passwd chat debug = No
        passwd chat timeout = 2
        check password script =
        username map =
        password level = 0
        username level = 0
        unix password sync = No
        restrict anonymous = 0
        lanman auth = Yes
        ntlm auth = Yes
        client NTLMv2 auth = No
        client lanman auth = Yes
        client plaintext auth = Yes
        preload modules =
        use kerberos keytab = No
        log level = 0
        syslog = 1
        syslog only = No
        log file = /var/log/samba/%m.log
        max log size = 0
        debug timestamp = Yes
        debug hires timestamp = No
        debug pid = No
        debug uid = No
        enable core files = Yes
        smb ports = 445 139
        large readwrite = Yes
        max protocol = NT1
        min protocol = CORE
        read bmpx = No
        read raw = Yes
        write raw = Yes
        disable netbios = No
        reset on zero vc = No
        acl compatibility = auto
        defer sharing violations = Yes
        nt pipe support = Yes
        nt status support = Yes
        announce version = 4.9
        announce as = NT
        max mux = 50
        max xmit = 16644
        name resolve order = lmhosts wins host bcast
        max ttl = 259200
        max wins ttl = 518400
        min wins ttl = 21600
        time server = No
        unix extensions = Yes
        use spnego = Yes
        client signing = auto
        server signing = No
        client use spnego = Yes
        enable asu support = No
        svcctl list =
        deadtime = 0
        getwd cache = Yes
        keepalive = 300
        kernel change notify = Yes
        fam change notify = Yes
        lpq cache time = 30
        max smbd processes = 0
        paranoid server security = Yes
        max disk size = 0
        max open files = 10000
        open files database hash size = 10007
        socket options = TCP_NODELAY
        use mmap = Yes
        hostname lookups = No
        name cache timeout = 660
        load printers = Yes
        printcap cache time = 750
        printcap name =
        cups server =
        iprint server =
        disable spoolss = No
        addport command =
        enumports command =
        addprinter command =
        deleteprinter command =
        show add printer wizard = Yes
        os2 driver map =
        mangling method = hash2
        mangle prefix = 1
        max stat cache size = 0
        stat cache = Yes
        machine password timeout = 604800
        add user script =
        rename user script =
        delete user script =
        add group script =
        delete group script =
        add user to group script =
        delete user from group script =
        set primary group script =
        add machine script =
        shutdown script =
        abort shutdown script =
        username map script =
        logon script =
        logon path = \\%N\%U\profile
        logon drive =
        logon home = \\%N\%U
        domain logons = No
        os level = 33
        lm announce = Auto
        lm interval = 60
        preferred master = No
        local master = No
        domain master = No
        browse list = Yes
        enhanced browsing = Yes
        dns proxy = Yes
        wins proxy = No
        wins server =
        wins support = No
        wins hook =
        kernel oplocks = Yes
        lock spin count = 3
        lock spin time = 10
        oplock break wait time = 0
        ldap admin dn =
        ldap delete dn = No
        ldap group suffix =
        ldap idmap suffix =
        ldap machine suffix =
        ldap passwd sync = no
        ldap replication sleep = 1000
        ldap suffix =
        ldap ssl =
        ldap timeout = 15
        ldap page size = 1024
        ldap user suffix =
        add share command =
        change share command =
        delete share command =
        eventlog list =
        config file =
        preload =
        lock directory = /var/cache/samba
        pid directory = /var/run
        utmp directory =
        wtmp directory =
        utmp = No
        default service =
        message command =
        get quota command =
        set quota command =
        remote announce =
        remote browse sync =
        socket address = 0.0.0.0
        homedir map = auto.home
        afs username map =
        afs token lifetime = 604800
        log nt token command =
        time offset = 0
        NIS homedir = No
        usershare allow guests = No
        usershare max shares = 0
        usershare owner only = Yes
        usershare path = /var/cache/samba/usershares
        usershare prefix allow list =
        usershare prefix deny list =
        usershare template share =
        panic action =
        host msdfs = Yes
        passdb expand explicit = No
        idmap backend =
        idmap uid =
        idmap gid =
        template homedir = /home/%D/%U
        template shell = /bin/false
        winbind separator = \
        winbind cache time = 300
        winbind enum users = No
        winbind enum groups = No
        winbind use default domain = No
        winbind trusted domains only = No
        winbind nested groups = Yes
        winbind nss info = template
        winbind refresh tickets = No
        winbind offline logon = No
        comment =
        path =
        username =
        invalid users =
        valid users =
        admin users =
        read list =
        write list =
        printer admin =
        force user =
        force group =
        read only = Yes
        acl check permissions = Yes
        acl group control = No
        acl map full control = Yes
        create mask = 0744
        force create mode = 00
        security mask = 0777
        force security mode = 00
        directory mask = 0755
        force directory mode = 00
        directory security mask = 0777
        force directory security mode = 00
        force unknown acl user = No
        inherit permissions = No
        inherit acls = No
        inherit owner = No
        guest only = No
        guest ok = No
        only user = No
        hosts allow = 192.168.0., 127.
        hosts deny =
        allocation roundup size = 1048576
        aio read size = 0
        aio write size = 0
        aio write behind =
        ea support = No
        nt acl support = Yes
        profile acls = No
        map acl inherit = No
        afs share = No
        block size = 1024
        change notify timeout = 60
        max connections = 0
        min print space = 0
        strict allocate = No
        strict sync = No
        sync always = No
        use sendfile = No
        write cache size = 0
        max reported print jobs = 0
        max print jobs = 1000
        printable = No
        printing = cups
        cups options =
        print command =
        lpq command = %p
        lprm command =
        lppause command =
        lpresume command =
        queuepause command =
        queueresume command =
        printer name =
        use client driver = No
        default devmode = Yes
        force printername = No
        default case = lower
        case sensitive = Auto
        preserve case = Yes
        short preserve case = Yes
        mangling char = ~
        hide dot files = Yes
        hide special files = No
        hide unreadable = No
        hide unwriteable files = No
        delete veto files = No
        veto files =
        hide files =
        veto oplock files =
        map archive = Yes
        map hidden = No
        map system = No
        map readonly = yes
        mangled names = Yes
        mangled map =
        store dos attributes = No
        dmapi support = No
        browseable = Yes
        blocking locks = Yes
        csc policy = manual
        fake oplocks = No
        locking = Yes
        oplocks = Yes
        level2 oplocks = Yes
        oplock contention limit = 2
        posix locking = Yes
        strict locking = Auto
        share modes = Yes
        dfree cache time = 0
        dfree command =
        copy =
        include =
        preexec =
        preexec close = No
        postexec =
        root preexec =
        root preexec close = No
        root postexec =
        available = Yes
        volume =
        fstype = NTFS
        set directory = No
        wide links = Yes
        follow symlinks = Yes
        dont descend =
        magic script =
        magic output =
        delete readonly = No
        dos filemode = No
        dos filetimes = Yes
        dos filetime resolution = No
        fake directory create times = No
        vfs objects =
        msdfs root = Yes
        msdfs proxy =

[homes]
        comment = Home Directories
        valid users = %S
        read only = No
        browseable = No

[share]
        comment = share
        path = /share/share
        guest ok = Yes

[Profiles]
        path = /usr/local/samba/profiles
        guest ok = Yes
        browseable = No

[usersdir]
        comment = Test's Service
        path = /home/testu1
        valid users = testu1
        read only = No




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