Page 1 of 1

SamyGO modified samba script

Posted: Sat Aug 11, 2012 9:42 pm
by andi
If somebody else finds it useful, here is a modified 04_04_samba.init script which supports empty passwords, friendly server names, and shares filters.

Re: SamyGO modified samba script

Posted: Mon Aug 13, 2012 9:41 am
by juusso
Didin`t looked into it, but thanks for sharing.
I think better you should to rename it to e.g. 04_04_samba_custom.init or smth else, better to leave original files untouched.

Re: SamyGO modified samba script

Posted: Mon Aug 13, 2012 11:52 am
by andi
I tried to make the script end user friendly as much as possible. With no additional configuration, the script behaves exactly the same as the original one, apart that it allows connection to anonymous shares with empty passwords. Even the original instructions on wiki are still valid for basic functionality.

Re: SamyGO modified samba script

Posted: Mon Aug 13, 2012 12:42 pm
by juusso
I ment just filename. Dissable original and leave custom. This is always good if anthem is going wrong - backup file is here. Doesnt matter. Forget :-)

Re: SamyGO modified samba script

Posted: Sun Apr 21, 2013 6:06 pm
by Asimov
Hi andi, I got here searching for a samba script to filter shares, and yours just works like a charme, thanks for sharing!

I'd just add the possibility to specify a path deeper than the share itself: in my NAS, in one case, I have a multi-purpose network share (say USBShare1), and I'd like to filter it deeper (sort of USBShare1/Movies;USBShare1/Series). I tried to set it on your script but I suppose it skips everthing after the slash and before the semicolon.

I guess it would be a simple task to accomplish, but unfortunately I'm not familiar with the scriptintg language, so I try to get some hint here :)

Thanks again!