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