Is there a way to start smbd when ports < 1024 are unavailable?
It seems that qemu does it, because the -nic smb=<path> provides a working
smbd instance available to smbmount, if not win9x. So what smb.conf options
does qemu use?
smbd -D crashes in Termux, as shown below.
---------- Forwarded message ---------
From: Mike Yates <myates23 at gmail.com>
Date: Wed, 10 Jan 2024, 17:41
Subject: Re: [Samba] Access to sockets denied in Termux
To: <samba at lists.samba.org>
No, I don't have root in my Android. I understand that prevents access to
ports below 1024 but I find that Linux clients can mount Termux
qemu-started Samba shares nevertheless.
I need to prevent smbd crashing for want of low sockets and wonder if win9x
can mount without them.
On Wed, 10 Jan 2024, 17:07 Rowland Penny via samba, <samba at
lists.samba.org>
wrote:
> On Wed, 10 Jan 2024 16:25:57 +0000
> Mike Yates via samba <samba at lists.samba.org> wrote:
>
> > Is anyone familiar with using a samba server in Android Termux?
> > It works OK for an smbmount in a Linux qemu VM, in the instance
> > started by the
> > -nic smb=$PATH option of qemu (both qemu-system-x86_64 and samba
> > installed to Termux) but smbd -D fails with this log:
> >
> > [2024/01/06 11:46:54.038658, 0]
> > ../../source3/smbd/server.c:1741(main) smbd version 4.16.11 started.
> > Copyright Andrew Tridgell and the Samba Team 1992-2022
> > [2024/01/06 11:46:54.064949, 0]
> > ../../source3/smbd/server.c:1097(smbd_open_one_socket)
> > smbd_open_one_socket: open_socket_in failed: Permission denied
> > [2024/01/06 11:46:54.065354, 0]
> > ../../source3/smbd/server.c:1097(smbd_open_one_socket)
> > smbd_open_one_socket: open_socket_in failed: Permission denied
> > [2024/01/06 11:46:54.065625, 0]
> > ../../source3/smbd/server.c:1097(smbd_open_one_socket)
> > smbd_open_one_socket: open_socket_in failed: Permission denied
> > [2024/01/06 11:46:54.065834, 0]
> > ../../source3/smbd/server.c:1097(smbd_open_one_socket)
> > smbd_open_one_socket: open_socket_in failed: Permission denied
> > [2024/01/06 11:46:54.065951, 0]
> > ../../source3/smbd/server.c:1265(open_sockets_smbd)
> > open_sockets_smbd: No sockets available to bind to.
> > [2024/01/06 11:46:54.066412, 0]
> > ../../lib/util/fault.c:172(smb_panic_log) :
> >
> > BTW I can't get a WindowsME qemu VM to see the server at all.
I've
> > tried all sorts of announce and workgroup options - any ideas?
>
> It is fairly obviously a permissions problem, is Samba being run by
> root ?
>
> Rowland
>
> --
> To unsubscribe from this list go to the following URL and read the
> instructions: https://lists.samba.org/mailman/options/samba
>