一.安装
yum install samba
二.配置
/etc/samba/smb.conf
[global]
workgroup = WORKGROUP
server string = Samba Server Version %v
log file = /var/log/samba/log.%m
max log size = 100
security = user
passdb backend = tdbsam
[share]
comment = share
path = /share
public = no
writable = yes
三.添加用户
useradd -s /sbin/nologin -M share #添加用户
smbpasswd -a share #设置密码
chown share:share /share
chmod 0750 /share
四.测试登录\\IP
网友评论