1. yum install samba samba-client 2. 修改/etc/samba/smb.conf [global] workgroup = SAMBA security = user passdb backend = tdbsam #printing = cups #printcap name = cups #load printers = yes #cups options = raw [homes] comment = Home Directories #valid users = %S, %D%w%S browseable = No #read only = No #inherit acls = Yes writable = Yes [printers] comment = All Printers path = /var/tmp printable = Yes create mask = 0600 browseable = No [print$] comment = Printer Drivers path = /var/lib/samba/drivers write list = @printadmin root force group = @printadmin create mask = 0664 directory mask = 0775 [public] comment = Public Stuff path = /home/heshuanglai public = Yes writable = Yes printable = No [heshuanglai@localhost ~]$ 3.关闭selinux: vim /etc/selinx/config ,将 SELINUX=enforcing 改为SELINUX=disabled(需重启机器) 4.添加用户: smbpasswd -a heshuanglai 5.启动: systemctl start smb.service Windows映射: //192.168.120.133/heshuanglai |
CentOS 7 samba安装与配置
最新推荐文章于 2021-12-01 13:32:34 发布