Recent installs of smbclient seems to be Broken

For anything from a basic static IP assignment, to NetworkManager help, or to VLANs over an LACP bond.
Post Reply
User avatar
rockedge
Posts: 3
https://dekodeco.com.pl/producent-mebli-na-wymiar-w-warszawie-nowoczesne-kuchnie/
Joined: Fri Apr 07, 2023 3:50 pm

Recent installs of smbclient seems to be Broken

Post by rockedge »

Working on the Void Linux based KLV-Airedale to port several Samba utility GUI's from Puppy Linux to KLV. These GUI's are to manage the Samba installation and use gtkdialog.

So far these all work well in the Void Linux environment as does many items borrowed from Puppy Linux (hence the name "Kennel Linux") except for one utility called pNetHood to which we refer to now as NetHood for KLV.
NetHood uses nbtscan to find Samba shares on a LAN, then with smbclient probes each Samba server for it's shares.

Code: Select all

smbclient -L <servername> -N
should then return the <servername> shares that populate the GUI to make Samba share connections easy to initiate and manage. Also we have a GUI called Samba Simple Management to configure start/stop the onboard Samba server.

Does any one have some trick or workaround for finding the samba share names? Something to substitute smbclient while we wait for the repo version to work 100% again.
Last edited by rockedge on Sat Apr 08, 2023 7:00 pm, edited 2 times in total.
pid1
Site Admin
Posts: 43
Joined: Sun Nov 21, 2021 2:50 am
Location: USA

Re: Recent installs of smbclient seems to be Broken

Post by pid1 »

I just installed smbclient-4.14.12_2 on my laptop and gave it a shot.

Code: Select all

brad@zenith ~ % smbclient -L allsafe           
Enter MYGROUP\brad's password: 

        Sharename       Type      Comment
        ---------       ----      -------
SMB1 disabled -- no workgroup available
Here is the expected output on a FreeBSD client:

Code: Select all

brad@htpc:~ % smbclient -L allsafe
smbclient: Can't load /usr/local/etc/smb4.conf - run testparm to debug it
Enter WORKGROUP\brad's password: 

        Sharename       Type      Comment
        ---------       ----      -------
        music           Disk      
        videos          Disk      
        storage         Disk      
        IPC$            IPC       IPC Service (NAS)
        brad            Disk      Home Directories
SMB1 disabled -- no workgroup available
FreeBSD has version 4.13.17 installed.

I'll do a little digging but I definitely agree that it is not expected behavior you're experiencing.

Did you submit a bug report/issue on the void-packages Github repo?
Daily Void Linux user since 2015. Desktops, laptops, 2U Supermicro 8XDTN+ NAS, hypervisor (Qemu+KVM), and many virtual machines.
FreeBSD 14.0 running a secondary Supermicro 2U X8DTN+ NAS and some jails.
User avatar
rockedge
Posts: 3
Joined: Fri Apr 07, 2023 3:50 pm

Re: Recent installs of smbclient seems to be Broken

Post by rockedge »

Yes I have submitted a bug report earlier today. The code blocks are exactly what I am seeing.

As mentioned previously I am porting a GUI utility nethood from Puppy Linux which scans a LAN and can mount the selected shares from the servers it finds. Builds a list of NETBIOS names of samba servers using nbtscan then probes each for shares using smbclient creating the list of available shares. So that's how we stumbled on to the bug. The ported NetHood works except for that one problem.

Thanks for the check! We'll get to the bottom of this soon.
Post Reply