What's new

Hidding folder in Samba

  • 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!

2023001

New Around Here
Hello, my router is ac68u ,it is attached with a HDD with 2 partitions: one in ex4 format for entware and one in NTFS. I have been trying to hide the entware folder locating in the ex4 partition and make it invisible from all the user when using Samba. I have set the permission for the entware folder to "NO" , while no one can access it , it is still visible. Could anyone help, please? Thanks!
 
Create a /jffs/scripts/smb.postconf file as follows:
Code:
#!/bin/sh

CONFIG=$1
source /usr/sbin/helper.sh

pc_insert "[entware" "browseable = no" $CONFIG
 

Latest threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

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