MCH SMB配置
yum install -y samba
vim /etc/samba/smb.conf
配置文件如下
# See smb.conf.example for a more detailed config file or
# read the smb.conf manpage.
# Run 'testparm' to verify the config is correct after
# you modified it.
<!--more-->
[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
[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 = root
create mask = 0664
directory mask = 0775
[bucket-z]
comment = bucket-z
path = /infinityfs1/hivefiles/sobeyhive/bucket-z/
valid users = mch
create mask = 0777
directory mask = 0777
public = yes
guest ok = no
writable = yes
browseable = yes
available = yes
read raw = yes
write raw = yes
strict locking = no
fake oplocks = yes
oplocks = no
read size = 131072
getwd cache = yes
安装CIFS以及SMB-CLIENT
yum install -y cifs-utils
yum install -y samba-client
创建SMB账户
useradd mch -s /sbin/nologin
smbpasswd -a mch
查看是否配置成功
smbclient -L localhost -U mch #本地IP接要查看的用