Projekte & Automatisierung

Howto Samba-Server

auf einem OpenWRT Router

Um den Zugriff auf den USB-Stick im Router zu vereinfachen, wird ein Samba-Server installiert. Dies ermöglicht den Zugriff auf den USB-Stick über das Netzwerk. Optional, wie in meinem Fall, kann ein NFS-Server installiert werden auf den ein Linux-Client Daten speichern kann.

Samba

---------------------------------------------------------------------------------------
Aktiviere & Konfiguriere Samba
---------------------------------------------------------------------------------------
opkg install samba36-server luci-app-samba
nano /etc/config/samba
config samba
        option workgroup 'WORKGROUP'
        option name 'NAME'
        option description 'BESCHREIBUNG'
        option homes '0'
        option interface 'LAN WAN WWAN'

config sambashare
        option browseable 'yes'
        option name 'FREIGABENAME'
        option path '/mnt/sda1'
        option read_only 'no'
        option guest_ok 'yes'
        option create_mask '0700'
        option dir_mask '0700'
        option read_only 'no'
        
service samba restart