DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD Packages and Ports

OpenBSD Packages and Ports Installation and upgrading of packages and ports on OpenBSD.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 20th November 2022
CiotBSD CiotBSD is offline
c107:b5d::
 
Join Date: Jun 2019
Location: Under /
Posts: 175
Default [7.2] Samba: NT_STATUS_CONNECTION_DISCONNECTED

Hi.

I restart a fresh install for Samba!

- native pf.conf!
- create my first user: # pdbedit -a u myuser
- add a share named 'share' on smb.conf — just for test :
Code:
Load smb config files from /etc/samba/smb.conf
Loaded services file OK.
Weak crypto is allowed

Server role: ROLE_STANDALONE

Press enter to see a dump of your service definitions

# Global parameters
[global]
dns proxy = No
log file = /var/log/samba/smbd.%m
max log size = 50
server role = standalone server
server string = Samba Server
idmap config * : backend = tdb


[homes]
browseable = No
comment = Home Directories
read only = No


[share]
guest ok = Yes
path = /mnt/nas/share


[printers]
browseable = No
comment = All Printers
path = /var/spool/samba
printable = Yes
⇒ after starting samba, check process:
Code:
$ doas rcctl check samba
smbd(ok)
nmbd(ok)

$ ps auwx | grep mbd
root    21591  0.0  0.0  1352  7636 ??  I      6:58AM    0:00.04 /usr/local/sbin/smbd -D
root    86682  0.0  0.0  1348  3104 ??  S      6:58AM    0:00.01 /usr/local/sbin/smbd -D
root    32738  0.0  0.0  1348  2820 ??  S      6:58AM    0:00.00 /usr/local/sbin/smbd -D
root    73966  0.0  0.0  1408  3300 ??  S      6:58AM    0:00.02 /usr/local/sbin/nmbd -D
myuser      56788  0.0  0.0  512  1484 p0  S+p    6:59AM    0:00.00 grep mbd
⇒ a lookup on lo0, on the server:
Code:
$ nmblookup -A 127.0.0.1                                                                                                                                   
Looking up status of 127.0.0.1
NAS            <00> -        B <ACTIVE>
NAS            <03> -        B <ACTIVE>
NAS            <20> -        B <ACTIVE>
WORKGROUP      <00> - <GROUP> B <ACTIVE>
WORKGROUP      <1e> - <GROUP> B <ACTIVE>

MAC Address = 00-00-00-00-00-00
- same informations on the address IP lan

⇒ rights systems:
Code:
$ ls -al /mnt/nas/share/                                                                                                                                       
total 48
drwxr-xr-x  6 root  wheel  512 Nov 20 06:54 ../
-rw-r--r--  1 myuser  wheel    2 Nov 20 06:58 test.txt
drwxr-xr-x  2 myuser  wheel  512 Nov 20 06:58 ./
(the test.txt file is filled with the number 1)


⇒ Try to connect on lo0, on the server:
Code:
$ smbclient //127.0.0.1/share -U myuser         
Password for [WORKGROUP\myuser]:
session setup failed: NT_STATUS_CONNECTION_DISCONNECTED

$ smbclient //192.168.1.3/share -U myuser
Password for [WORKGROUP\myuser]:
session setup failed: NT_STATUS_CONNECTION_DISCONNECTED
(same result, with the arg '-m SMB3' (or SMB2)…)

One idea?

---

I've tested too, since my Linux station (LM 21, samba 4.15.9), with same fails.
__________________
GPG:Fingerprint ed25519 : 072A 4DA2 8AFD 868D 74CF 9EA2 B85E 9ADA C377 5E8E
GPG:Fingerprint rsa4096 : 4E0D 4AF7 77F5 0FAE A35D 5B62 D0FF 7361 59BF 1733
Reply With Quote
Reply

Tags
nt_status_connection_disconnected, openbsd, samba

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Samba 3.6.0 released J65nko News 0 9th August 2011 07:55 PM
Adding wd4 to Samba EverydayDiesel OpenBSD Packages and Ports 5 15th November 2010 12:18 AM
ACL, Samba ACL, FTP acl da1 FreeBSD General 3 3rd April 2009 10:14 PM
Samba + acl bichumo General software and network 0 30th June 2008 09:49 AM
Samba NOT STARTING pcfxer FreeBSD General 11 13th May 2008 09:29 AM


All times are GMT. The time now is 01:31 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick