Score:0

Alma 9.1 Samba config not allowing outside connections

lv flag

I just installed Alma 9.1 on my homelab, and I've attempted to install samba everything seems to work okay locally. Im able to run smbclient -U user -W SAMBA -L //192.168.0.254 and list all the available shares, but im not able to run this command from another linux computer on the same network. I am able to ssh between these machines, suggesting that there shouldn't be a problem with my networking either.

I used redhat cockpit to create my samba share, and then attempted creating a clean conf manually when that didn't work. Both confs act the same, allowing local connections but not network.

error

do_connect: Connection to 192.168.0.254 failed (Error NT_STATUS_HOST_UNREACHABLE)

smb.conf (Modified by Alma and Cockpit)

# See smb.conf.example for a more detailed config file or
# read the smb.conf manpage.
# Run 'testparm' to verify the config is correct after
# you modified it.
#
# Note:
# SMB1 is disabled by default. This means clients without support for SMB2 or
# SMB3 are no longer able to connect to smbd (by default).

[global]
        workgroup = SAMBA
        security = user

        passdb backend = tdbsam

        printing = cups
        printcap name = cups
        load printers = yes
        cups options = raw

        include = registry
[homes]
        comment = Home Directories
        valid users = %S, %D%w%S
        browseable = No
        read only = No
        inherit acls = Yes

[printers]
        comment = All Printers
        path = /var/tmp
        printable = Yes
        create mask = 0600
        browseable = No

[print$]
        comment = Printer Drivers
        path = /var/lib/samba/drivers
        write list = @printadmin root
        force group = @printadmin
        create mask = 0664
        directory mask = 0775

[number$]
        comment = Removed
        path = /shares/Number$
        read only = No

smb.conf (minimal config)

[global]
security = user

[number$]
        writeable = yes
        valid users = USER
        path = /shares/Number$
Score:0
lv flag

I found my mistake, I'm not familiar with firewalld and did not know this was the default on Alma. You can solve this by adding samba to firewalld as outlined here.

If you prefer using the Cockpit GUI, click on the network tab. Then click on Edit rules and zones. From there its incredibly easy to add services.

KillerHawk avatar
lv flag
This will be the accepted answer when I have the ability to mark it. I have to wait 2 days
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.