1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
Dismiss Notice

Welcome To SNBForums

SNBForums is a community for anyone who wants to learn about or discuss the latest in wireless routers, network storage and the ins and outs of building and maintaining a small network.

If you'd like to post a question, simply register and have at it!

While you're at it, please check out SmallNetBuilder for product reviews and our famous Router Charts, Ranker and plenty more!

Hidding folder in Samba

Discussion in 'Asuswrt-Merlin' started by 2023001, Jul 18, 2019.

  1. 2023001

    2023001 New Around Here

    Joined:
    Jul 18, 2019
    Messages:
    1
    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!
     
  2. ColinTaylor

    ColinTaylor Part of the Furniture

    Joined:
    Mar 31, 2014
    Messages:
    9,101
    Location:
    UK
    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
     
  3. unsynaps

    unsynaps Senior Member

    Joined:
    Nov 9, 2014
    Messages:
    254
    Location:
    Halethorpe, MD