Samba filesystem

From DD-WRT Wiki

(Difference between revisions)
Jump to: navigation, search
Revision as of 13:41, 23 July 2006 (edit)
JohnnyPrimus (Talk | contribs)
(Introduction)
← Previous diff
Revision as of 13:49, 23 July 2006 (edit) (undo)
JohnnyPrimus (Talk | contribs)
(Instructions)
Next diff →
Line 3: Line 3:
==Instructions== ==Instructions==
-The first step would be to create a network share on the Samba or Windows server and provide some logon credentials.+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, [http://samba.org/samba/docs/man/Samba-HOWTO-Collection/ see the howto for more]. Windows users can also set the permissions as they see fit.<br/><br/>
-Then, setup the router by logging into the DD-WRT's web interface. <br/>Go to '''Administration''', find the '''Samba FS Automount''' option and enable it.+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.
-<br/>In 'share' enter the location of your network share, eg: ''\\lanserver\myshare'' .+<br/><br/>Enter the share location in the 'share' field, eg: ''//192.168.1.160/myshare'' .
-<br/>In 'user' and 'password' enter the logon credentials of a user allowed to access the share.+<br/><br/>In 'user' and 'password' enter the logon credentials of a user allowed to access the share.
-<br/>+<br/><br/><br/>
<br/>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. <br/>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.

Revision as of 13:49, 23 July 2006

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.