What's new

SMB sharing and skynet/entware.

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

unsynaps

Senior Member
I sort of have a solution but I was trying to see if there was a more "elegant/proper" one.

It seems the SMB server shares out all root folders found on a USB device plugged into the router. This means entware and skynet show up. I of course can restrict access to these folders but I would rather them not be there at all.

My solution was to make a smb.postconf file with the following two lines:
Code:
sed -i '/\[entware/,+8 d' /tmp/etc/smb.conf
sed -i '/\[skynet/,+8 d' /tmp/etc/smb.conf

It works. But just as I said is there a more elegant/proper way of doing this?

EDIT: Oh and if someone reading is curious what that sed line does it looks for a line beginning with '[skynet' or '[entware' deleting that line and the 8 lines after it.
 
If you only want them to not be visible when browsing the network:
Code:
pc_insert "[entware" "browseable = no" $CONFIG
pc_insert "[skynet" "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