What's new

How to setup /jffs to share

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

octopus

Part of the Furniture
Small guide to setup /jffs share to ftp and samba.

Make a /jffs folder in FTP and give R/W rigts.

Do a post-mount script and "chmod a+rx /jffs/scripts/post-mount"

#!/bin/sh
mount --bind /jffs /mnt/ac68u/jffs #<<<=== link to your /jffs folder ex FTP or where you have FTP share
Both /jffs places works simultaneously at same time.

Thats it.
Octopus
 
Last edited:
How to add /jffs to samba in a "smb.postconf" edit your user/read/write user as you which.

#!/bin/sh
CONFIG=$1

source /usr/sbin/helper.sh

pc_append "[jffs]" "$CONFIG"
pc_append "comment = rt-ac68u's jffs" "$CONFIG"
pc_append "path = /jffs" "$CONFIG"
pc_append "dos filetimes = yes" "$CONFIG"
pc_append "fake directory create times = yes" "$CONFIG"
pc_append "valid users = admin" "$CONFIG"
pc_append "invalid users =" "$CONFIG"
pc_append "read list = admin" "$CONFIG"
pc_append "write list = admin" "$CONFIG"
 
Could something similar be done in order to share the top-level directory of an attached USB drive ? As it is currently with the firmware interface, (Windows) users can't create new directories, delete directories, etc.
 

Similar threads

Latest threads

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top