-
Notifications
You must be signed in to change notification settings - Fork 47
Open
Description
Hi, I'm trying to set up a simple server and I'm having trouble connecting to it with smbclient.
Command and error:
box@box:~$ docker run -it --rm --name box -p 445:445 -e "USER=box" -e "PASS=s" -v "/home:/storage" dockurr/samba
smbd version 4.21.6 started.
Copyright Andrew Tridgell and the Samba Team 1992-2024
parse_dfs_path_strict: Hostname 0.0.0.0 is not ours.
parse_dfs_path_strict: Hostname 192.168.1.101 is not ours.
I use this smbclient command. Here is it attempting with various localhost aliases ("localhost" itself doesn't work btw!)
box@box:~$ smbclient //0.0.0.0/storage -U box%s
tree connect failed: NT_STATUS_BAD_NETWORK_NAME
box@box:~$ smbclient //127.0.0.1/storage -U box%s
tree connect failed: NT_STATUS_BAD_NETWORK_NAME
box@box:~$ smbclient //192.168.1.101/storage -U box%s
tree connect failed: NT_STATUS_BAD_NETWORK_NAME
# different error with bad user, btw
box@box:~$ smbclient //192.168.1.101/storage -U bad%bad
session setup failed: NT_STATUS_LOGON_FAILURE
I'm running on Ubuntu 24.04. My samba package is installed but for this test disabled with sudo systemctl stop smbd.
Can someone please help me tell why this isn't working? Thanks.
Metadata
Metadata
Assignees
Labels
No labels