Running Samba (smbd fileserver) on Windows!

Garming Sam garming at catalyst.net.nz
Mon Oct 17 21:30:32 UTC 2016


They actually only recently fleshed out more of their Unix domain socket
implementation I believe, along with inotify. They are also probably
working on whatever I had to hack out (ipv6 oddities for instance), so
the default Ubuntu package will probably run in due course.


Cheers,

Garming

On 15/10/16 09:30, Jeremy Allison wrote:
> On Fri, Oct 14, 2016 at 03:38:00PM +1300, Garming Sam wrote:
>> I have a proof of concept of smbd running on Bash on Windows.
>>
>> https://www.samba.org/~garming/
>>
>> It's just running as guest, with a few hacks but it appears I can
>> transfers files to and from the share running inside the Windows Linux
>> subsystem. The fact that it mostly just works is quite scary.
>>
>> What's also interesting is that Samba actually fills one of the obvious
>> shortcomings of the system as it is right now. While you can expose the
>> C:/ drive on Windows to the internal Linux system, the converse is not
>> true. The Linux files store their additional information as extended
>> attributes and so modifying them on Windows easily destroys or corrupts
>> this information. But if you have Samba, you can now display a logical
>> view over SMB.
>>
>> I'm not sure about how well it performs, but it's almost certainly going
>> to be better than anything like Cygwin. If it's at the point where Samba
>> can sort of run on it, who knows what else it could do. The fact
>> Microsoft are the ones who effectively got smbd running on Windows is a
>> bit topsy-turvy but I guess that is the world right now.
> w00t! Garming - this is an *amazing* result ! I remember asking if
> it worked a few weeks ago but thought there were a few syscalls
> missing.
>
> I think this post might well go on the "News" page on samba.org !
>
> Well done - and thanks a *LOT* for doing this work !
>
> Jeremy.




More information about the samba-technical mailing list