Hello.
I'm trying to access the SMB/CIFS share of my Windows 11 bhyve VM from FreeBSD (13R-p8) ; I've configured everything from scratch following these two good tutorials :
vermaden.wordpress.com
as follows below. It almost works on both sides. Only a "little" problem persists for me,I'm not able to connect using the password that I have configured in Windows 11,but it works without it. But,for sure I can't share my resources without protecting them using a password.
on FreeBSD :
I tried with the current marietto/admin password and with the password configured on :
I can access the Windows shared drive from FreeBSD if I disable the password on :
I'm not sure if the problem is in some bad FreeBSD or Windows setting.
I'm trying to access the SMB/CIFS share of my Windows 11 bhyve VM from FreeBSD (13R-p8) ; I've configured everything from scratch following these two good tutorials :
Samba fileserver on FreeBSD (Update FreeBSD 12) - davd.io
While building my new NAS, I came across the question how to install a fileserver based on Samba on FreeBSD. Here's how...
www.davd.io

SMB/CIFS on FreeBSD
If you use FreeBSD/Illumos/Linux (or other UNIX/Unix-like system) there is big chance that you do not like – to say the least – the Windows world, but sometimes there is need to share s…

as follows below. It almost works on both sides. Only a "little" problem persists for me,I'm not able to connect using the password that I have configured in Windows 11,but it works without it. But,for sure I can't share my resources without protecting them using a password.
Code:
/etc/sysctl.conf
kern.maxfiles=25600
kern.maxfilesperproc=16384
net.inet.tcp.sendspace=65536
net.inet.tcp.recvspace=65536
/boot/loader.conf:
aio_load="YES"
nano /etc/rc.conf
hostname="marietto"
ifconfig_em0="DHCP"
samba_server_enable="YES"
# pkg install samba412
gedit /usr/local/etc/smb4.conf
[global]
workgroup = workgroup
netbios name = marietto
server string = samba
security = user
max smbd processes = 3
encrypt passwords = yes
socket options = TCP_NODELAY IPTOS_LOWDELAY IPTOS_THROUGHPUT SO_KEEPALIVE SO_RCVBUF=65536 SO_SNDBUF=65536
aio read size = 16384
aio write size = 16384
strict locking = no
strict sync = no
# DISABLE PRINTING
load printers = no
disable spoolss = yes
show add printer wizard = no
[marietto mnt folder]
path = /mnt
public = yes
writable = yes
browsable = yes
write list = marietto
[marietto home folder]
path = /home/marietto
public = yes
writable = yes
browsable = yes
write list = @marietto
# id marietto
uid=1001(marietto) gid=1001(marietto) groups=1001(marietto),0(wheel),5(operator),44(video),145(webcamd),920(vboxusers),602(_pkcs11)
# which pdbedit
/usr/local/bin/pdbedit
# pkg which `which pdbedit`
/usr/local/bin/pdbedit was installed by package samba412-4.12.15_4
# pdbedit -a -u marietto
Unix username: marietto
NT username:
Account Flags: [U ]
User SID: S-1-5-21-4245300636-4074870798-1088442022-1000
Primary Group SID: S-1-5-21-4245300636-4074870798-1088442022-513
Full Name: marietto
Home Directory: \\marietto\marietto
HomeDir Drive:
Logon Script:
Profile Path: \\marietto\marietto\profile
Domain: MARIETTO
Account desc:
Workstations:
Munged dial:
Logon time: 0
Logoff time: 9223372036854775807 seconds since the Epoch
Kickoff time: 9223372036854775807 seconds since the Epoch
Password last set: Wed, 20 Apr 2022 15:00:20 CEST
Password can change: Wed, 20 Apr 2022 15:00:20 CEST
Password must change: never
Last bad password : 0
Bad password count : 0
Logon hours : FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
# pdbedit -L
marietto:1001:marietto
on FreeBSD :
Code:
# mount_smbfs -I 192.168.1.6 //Marietto-window/c /mnt/windows-drive-c
# mount_smbfs -I 192.168.1.6 //Marietto-window/g /mnt/windows-drive-g
# mount_smbfs -I 192.168.1.6 //Marietto-window/h /mnt/windows-drive-h
mount_smbfs: unable to open connection: syserr = Authentication error
I tried with the current marietto/admin password and with the password configured on :
Code:
Control Panel /
All Control Panel Items /
Credential Manager /
Windows Credentials /
marietto
I can access the Windows shared drive from FreeBSD if I disable the password on :
Code:
Control Panel /
All Control Panel Items /
Network and Sharing Center /
Advanced sharing settings /
Password protected sharing /
Turn off password protected sharing
I'm not sure if the problem is in some bad FreeBSD or Windows setting.