CentOS部署samba服務

服務端

# yum 安裝
[[email protected] ~]# yum install samba samba-client samba-swat -y

# 配置文件
[[email protected] ~]# 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
###########################################

訪問

[[email protected] ~]# yum install cifs-utils -y

# 挂載
[[email protected] ~]# mkdir -p /samba_share
[[email protected] ~]# mount -t cifs //xxx.xxx.xxx.xx/share /samba_share
默认图片
何瑞
懂点技术的命理师
文章: 41

留下评论

此站点使用Akismet来减少垃圾评论。了解我们如何处理您的评论数据