一 安装samda服务
1. 查看是否已经安装samba服务:
rpm -qa | grep samba
2. 若已经安装,可以直接查看samba服务信息:
rpm -qi samba
3. 若没有安装,则安装samba服务:
yum install samba samba-client -y
4. 卸载服务命令:
yum remove samba -y
二 配置samba服务
# 备份smb.conf文件:
cp /etc/samba/smb.connf /etc/samba/smb.conf.bak
# 编辑smb.conf文件:
vim smb.conf
[global]
workgroup = SAMBA
security = user
passdb backend = tdbsam
# printing = cups
# printcap name = cups
# load printers = no
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
[prin