In this article i will be documenting how to setup a Samba server using Debian Os. With it being browse-able in the GUI, Gnome or Windows.
Make sure all apt repos are updated and packages are the most secure and recent.
apt update apt upgrade shutdown -r now # a reboot might be needed.
Install samba and Avahi and agree to the required dependencies.
apt install samba avahi-daemon
Configure your /etc/samba/smb.conf accordingly. i have an example below to help assists with the first deploy. Keep in mind the following allows public browsing and this setup should only be used in a trusted environment.
[global] workgroup = WORKGROUP server string = Storage Server %v netbios name = storage security = user map to guest = bad user dns proxy = no [Windows] comment = Public File Share path = /storage/Windows browsable =yes writable = yes guest ok = yes read only = no force user = nobody public = yes create mask = 0777 directory mask = 0777
The final steps are to make sure the services are started on startup.
systemctl enable --now smbd.service nmbd.service systemctl enable --now avahi-daemon.service
Hope you all found this article has been interesting and to the point and allowed you to get the service up and running in a short period of time.