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:
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.
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.