For more options read the full tutorial here
Install Sambadnf install samba samba-common samba-clientSetup the share location
mkdir -pv /srv/samba chmod -Rv 777 /srv/samba chown -Rv nobody:nobody /srv/samba chcon -u system_u -t samba_share_t -v /srv/sambaBackup existing configuration
mv /etc/samba/smb.conf /etc/samba/smb.conf.bakEdit /etc/samba/smb.conf
[global] unix charset = UTF-8 workgroup = SAMBA security = user map to guest = Bad User [Public] path = /srv/samba writeable = yes guest ok = yes guest only = yes force create mode = 777 force directory mode = 777Check if smb.conf is correct with:
testparm -sActivate the services
systemctl enable smb nmb systemctl start smb nmb systemctl status smb nmbAllow samba ports in firewalld
firewall-cmd --permanent --add-service=samba firewall-cmd --reload firewall-cmd --list-servicesAllow samba ports in iptables
# Open Samba ports for everybody from LAN iptables -A INPUT -s 192.168.0.0/16 -p udp -m udp --dport 137 -j ACCEPT iptables -A INPUT -s 192.168.0.0/16 -p udp -m udp --dport 138 -j ACCEPT iptables -A INPUT -s 192.168.0.0/16 -p tcp -m tcp --dport 139 -j ACCEPT iptables -A INPUT -s 192.168.0.0/16 -p tcp -m tcp --dport 445 -j ACCEPT i6ptables -A INPUT -s fe80::/10 -p udp -m udp --dport 137 -j ACCEPT ip6tables -A INPUT -s fe80::/10 -p udp -m udp --dport 138 -j ACCEPT ip6tables -A INPUT -s fe80::/10 -p tcp -m tcp --dport 139 -j ACCEPT ip6tables -A INPUT -s fe80::/10 -p tcp -m tcp --dport 445 -j ACCEPT
Access the share on Windows with Explorer
Access the share on Linux with Thunar
Access the share on Android with
To share a Private folder and protect it with a password, read the second part of the
tutorial