$ sudo systemctl enable smb.service
Created symlink from /etc/systemd/system/multi-user.target.wants/smb.service to /usr/lib/systemd/system/smb.service.
3.启动samba服务
$ sudo systemctl start smb.service
4.查看samba服务的状态
$ sudo systemctl status smb.service
smb.service - Samba SMB Daemon
Loaded: loaded (/usr/lib/systemd/system/smb.service; enabled; vendor preset: disabled)
Active: active (running) since Thu 2016-09-29 19:59:07 CST; 52s ago
Main PID: 4816 (smbd)
...
[global]
workgroup = WORKGROUP
server string = Samba Server %v
netbios name = centos
security = user
map to guest = bad user
dns proxy = no
#============================ Share DefinitiOns==============================
[django_project]
path = /home/caideyang/Documents/project //分享的目录
browsable =yes
writable = yes
guest ok = yes
read Only= no
public = no
vaild users = caideyang //客户端登陆用户