life ideas

December 2, 2006

Samba Filesystem – WRT Wiki

Filed under: Uncategorized — manoftoday @ 11:00 pm


  1. Create a SMB network share on the host computer.
  2. Use the Web Interface and go to the Administration tab.
  3. Enable the Samba FS Automount option. If new options do not appear the “Save Changes” and go back to the page.
  4. Enter the share location in the ‘share’ field. eg: //
  5. In ‘user’ and ‘password’ enter the user credentials of a user allowed to access the share.
  6. You may optionally enter a Startscript. For example if you have a script on your share \\lanserver\myshare\ you enter in the ‘Startscript’ box. This script (/tmp/smbshare/ on the router) will be executed when the router mounts your share on boot.

You can see sample of startup script on Jffs page.

you can have no username and password . after the mount , you can telnet/ssh  (root/password) access in /tmp/smbshare



Mount Manually

You may want to manually mount a share. To do this, simply enter this command in a Telnet or SSH prompt:

  • /tmp/Path/ is the path you want it mounted
  • Don’t forget that only /tmp/, /dev/ and potentially /jffs/ are writeable!
mkdir /tmp/Path/
smbmount //<IP.SE.RV.ER>/Share /tmp/Path/ -o username=<user>,password=<password_user>

Receiving errors like this seems normal:

 load_client_codepage: filename /usr/lib/codepages/codepage.850 does not exist.
 load_unicode_map: filename /usr/lib/codepages/unicode_map.850 does not exist.
 session request to failed
 Can't get /etc/mtab~ lock filesmbmnt failed: 1

To unmount a share, enter this command in a shell prompt:

 umount /tmp/Path/
 rmdir /tmp/Path/

Public key method

First you should generate a Public/Private key pair on your desktop machine. This can be done through the “Puttygen” utility if you’re using either Putty or WinSCP as clients. Copy the public key to the clipboard and save the private key somewhere on your computer. There is no need to save the public key. If you forget it, you can instruct Puttygen to open your private key file rather than generating a new key pair and it will tell you your public key. It is recommened that you don’t secure your key pair with a password, as this will make things easier for you, although somewhat less secure.

  1. Using the [Web Interface] goto the Administration tab.
  2. Under the Services sub-tab, Enable SSSHd in the Secure Shell section. If new options don’t appear, Save Settings
  3. Paste your public key in the authorized key of the SSHD section that has now expanded. You will need to generate this on your desktop if you don’t have one yet.   the key can be copied from puttygen UI and pasted here.
  4. disable password access approach
  5. disable telnet access
  6. Save Settings


Password Logon method

If you don’t want the hassle of generating ssh keys, you may use the password logon method.

  1. Using the [Web Interface] goto the Administration tab.
  2. Under the Services sub-tab, Enable SSSHd in the Secure Shell section. If new options don’t appear, Save Settings
  3. Enable Password Login to enable the password login

After this you may login as user “root” with the password you set for the webinterface


SSH Shell Client

Provides a secure alternative to standard telnet.
A good Windows Client to use is Putty (
Configure the client to use the Private Key you saved earlier.
Most Linux distros have telnet and SSH clients by default.

Source: Samba Filesystem – WRT Wiki



  1. I’m curious to find out what blog platform you have been utilizing?

    I’m experiencing some small security issues with my
    latest website and I’d like to find something more safeguarded.

    Do you have any recommendations?

    Comment by telnet into netgear linksys router linux firmware — August 30, 2014 @ 11:52 pm

  2. Do you have a spam problem on this site; I also am a blogger, and
    I was curious about your situation; many of us have developed some nice procedures and
    we are looking to exchange solutions with others, why not shoot me an email if interested.

    Comment by telnet redhat linux commands with examples — September 10, 2014 @ 1:21 am

RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Create a free website or blog at

%d bloggers like this: