Perfect Debian Samba Server

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.

Image of Samba share being browsable.

Step 1:

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.

Step 2:

Install samba and Avahi and agree to the required dependencies.

apt install samba avahi-daemon

Step 3:

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.

        workgroup = WORKGROUP
        server string = Storage Server %v
        netbios name = storage
        security = user
        map to guest = bad user
        dns proxy = no

        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

Step 4:

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.

Leave a comment

Your email address will not be published. Required fields are marked *