centos 6.5 掛載samba 服務共享的目錄

centos6.5 部署samba服務共享了一個目錄share  (不用輸入密碼就能夠訪問)linux

windos 下的訪問:centos

    直接經過\\xxx.xxx.xxx.xx\sharecode

linux 安裝sambaserver

            安裝: yum install samba samba-client samba-swatci

    cat /etc/samba/smb.conf部署

[global]
        workgroup = MYGROUP
        server string = Samba Server Version %v
        hosts allow = 10.0.8.0/24 
        log file = /var/log/samba/log.%m
        max log size = 50
        security = share
        passdb backend = tdbsam
        load printers = yes
        cups options = raw

[share]
comment = share
path = /project/tools
browseable = yes
guest ok = yes
writable = yes


[homes]
        comment = Home Directories
        browseable = no
        writable = yes

[printers]
        comment = All Printers
        path = /var/spool/samba
        browseable = no
        guest ok = no
        writable = no
        printable = yes

linux 下的訪問: string

       yum install cifs-utilsit

        mount -t cifs //xxx.xxx.xxx.xx/share /opt/samba_share   (掛載share目錄到本地的samba_share 目錄)io

        注意: 只有root能夠掛載,  雖然samba 沒有設置密碼,可是任然會提示輸入密碼,直接回車就能夠了.table

相關文章
相關標籤/搜索