Samba filesystem

From DD-WRT Wiki

Revision as of 13:49, 23 July 2006 by JohnnyPrimus (Talk | contribs)
Jump to: navigation, search

Introduction

One of the things you might miss on the router, is writable storage. Well, if you run a Linux samba or Windows server on your LAN, the Samba filesystem provides a convenient solution! It adds a vast amount of writable storage to your router and even offers an automatic startup script.

Instructions

First create a network share on the Linux or Windows server. Linux users will utilize samba for this. Windows users will use the native file sharing functionality. Linux users now need to set up permissions for the share, see the howto for more. Windows users can also set the permissions as they see fit.

Next, configure samba on the router. You can configure Samba via the Web Interface, to do so navigate to Administration, find the Samba FS Automount option and enable it.

Enter the share location in the 'share' field, eg: //192.168.1.160/myshare .

In 'user' and 'password' enter the logon credentials of a user allowed to access the share.



Optionally you may enter a Startscript. For example if you have a script on your sambashare \\lanserver\myshare\startup.sh you enter startup.sh in the 'Startscript' box. This script (/tmp/smbshare/startup.sh on the router) will be executed when the router mounts your share on boot.