[global]
workgroup = WORKGROUP <-- this must be the windows workgroup
server string = NAS samba server %v
security = user
passdb backend = tdbsam
[homes]
comment = Home Directories
browseable = yes
writable = yes
[raid]
path = /mnt/raid/
public = yes
writable = yes
browseable = yes
available = yes
create mask = 0777
directory mask = 0777
$ systemctl start smb.service nmb.service
$ systemctl enable smb.service nmb.service
$ setsebool -P samba_enable_home_dirs on
$ chcon -t samba_share_t /mnt/raid/
$ semanage fcontext -a -t samba_share_t "/mnt/raid(/.*)?"
$ restorecon -R -v /mnt/raid/
No comments:
Post a Comment