This guide will help you install and configure Samba to create a fully accessed shared folder where everyone can read and write without authentication.
dnf -y install samba
mkdir /home/share
chmod 777 /home/share
vi /etc/samba/smb.conf
Add the following content to the file:
[global]
unix charset = UTF-8
workgroup = SAMBA
security = user
hosts allow = 127. 10.0.0.
map to guest = Bad User
...
[Share]
path = /home/share
writable = yes
guest ok = yes
guest only = yes
force create mode = 777
force directory mode = 777
systemctl enable --now smb
If SELinux is enabled and you are using the /home directory, update the SELinux policy:
setsebool -P samba_enable_home_dirs on
restorecon -R /home/share
To allow Samba services through the firewall, execute:
firewall-cmd --add-service=samba --permanent
firewall-cmd --reload
After completing these steps, your fully accessed shared folder will be set up and ready for use.