Samba basic setup

Published by

Posted on May 10, 2016

edit /etc/samba/smb.conf

Sample config

[share]
comment = FileServer
path = /path/path
browseable = yes
read only = no
guest ok = no

set the workgroup
workgroup =

passdb backend = tdbsam

# “security = user” is always a good idea. This will require a Unix account
# in this server for every user accessing the server. See
# /usr/share/doc/samba-doc/htmldocs/Samba3-HOWTO/ServerType.html
# in the samba-doc package for details.
security = user

SElinux config

setsebool -P samba_export_all_rw 1

setsebool samba_share_fusefs on

Restart samba

systemctl restart smb.service
systemctl restart nmb.service

Allow the connection via the firewall

firewall-cmd –permanent –add-service=samba

firewall-cmd –list-all