Score:2

Ubuntu 20.04 Samba NT_STATUS_CONNECTION_REFUSED

co flag

I recently upgraded from 16.04 LTS to 20.04 LTS and now I have problems connecting from Windows/10 to Ubuntu.

I do have one connection active from Windows/10:

From explorer display, the Home drive.

BUT, I cannot connect any others:

C:\Users\rene>net use g: \\tristram\games
System error 53 has occurred.

The network path was not found.

C:\Users\rene>

The share definition in smb.conf:

[Games]
    comment = René's games on Tristram
    path = /usr/games
    readonly = no
    writeable = yes
    browseable = yes
    follow symlinks = yes
    veto files = /.*/*~/*.desktop/
    create mask = 0740
    directory mask = 0740
    guest ok = no
    valid users = rene

Looking on the server with smbclient, I get the following:

rene@TRISTRAM:~$ sudo smbclient -L tristram -d 4
lp_load_ex: refreshing parameters
Initialising global parameters
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
Processing section "[global]"
doing parameter netbios name = TRISTRAM
doing parameter workgroup = DALLE-FAMILY
doing parameter local master = yes
doing parameter preferred master = yes
doing parameter os level = 65
doing parameter server string = %h server (Samba , Ubuntu 20.04 LTS)
doing parameter interfaces = eno1
doing parameter bind interfaces only = yes
doing parameter log file = /var/log/samba/log.%m
doing parameter log level = 3 passdb:5 auth:5
doing parameter max log size = 4096
doing parameter panic action = /usr/share/samba/panic-action %d
doing parameter server role = standalone server
doing parameter obey pam restrictions = yes
doing parameter ntlm auth = ntlmv1-permitted
doing parameter unix password sync = yes
doing parameter passwd program = /usr/bin/passwd %u
doing parameter passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
doing parameter pam password change = no
doing parameter map to guest = bad user
doing parameter usershare allow guests = no
pm_process() returned Yes
added interface eno1 ip=192.168.2.65 bcast=192.168.2.255 netmask=255.255.255.0
Client started (version 4.11.6-Ubuntu).
Connecting to 192.168.2.65 at port 445
Connecting to 192.168.2.65 at port 139
do_connect: Connection to tristram failed (Error NT_STATUS_CONNECTION_REFUSED)
rene@TRISTRAM:~$ sudo ufw status
Status: inactive
rene@TRISTRAM:~$ sudo systemctl status smbd
● smbd.service - LSB: Samba SMB/CIFS daemon (smbd)
     Loaded: loaded (/etc/init.d/smbd; generated)
     Active: active (exited) since Tue 2021-07-06 15:20:59 EDT; 9min ago
       Docs: man:systemd-sysv-generator(8)
    Process: 6579 ExecStart=/etc/init.d/smbd start (code=exited, status=0/SUCCESS)

Jul 06 15:20:59 TRISTRAM systemd[1]: Starting LSB: Samba SMB/CIFS daemon (smbd)...
Jul 06 15:20:59 TRISTRAM systemd[1]: Started LSB: Samba SMB/CIFS daemon (smbd).
rene@TRISTRAM:~$ 

While from the server to the client there is no problems:

rene@TRISTRAM:~$ smbclient -L nancy
Enter DALLE-FAMILY\rene's password: 

    Sharename       Type      Comment
    ---------       ----      -------
    ADMIN$          Disk      Remote Admin
    C$              Disk      Default share
    D$              Disk      Default share
    IPC$            IPC       Remote IPC
    Windows-Games   Disk      
    Windows-Rene    Disk      
SMB1 disabled -- no workgroup available
rene@TRISTRAM:~$smbclient -L TRISTRAM
do_connect: Connection to TRISTRAM failed (Error NT_STATUS_CONNECTION_REFUSED)
rene@TRISTRAM:~$ 
Morbius1 avatar
es flag
Check for the simple things: Did you add rene to the samba password database `sudo smbpasswd -a rene` . And does rene have Linux permissions to access the shared folder: `ls -dl /usr/games`
lelorrain avatar
co flag
Yes to both questions: drwxrwx--x 23 rene rene 4096 Jun 29 10:34 /usr/games
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.