How to access SMB/CIFS Share of my Windows 11 bhyve VM from FreeBSD reddit / freebsd ---------------------------------------------------------------------- loziomario · 2022-04-20 19:55 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 : ​ [https://www.davd.io/samba-fileserver-on- freebsd/](https://www.davd.io/samba-fileserver-on-freebsd/) [https://vermaden.wordpress.com/2018/12/27/smb-cifs-on- freebsd/](https://vermaden.wordpress.com/2018/12/27/smb-cifs-on- freebsd/) ​ 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. ​ /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(whee l),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 I tried to mount the folders that I have shared on Windows 11 : ​ # 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 where : 192.168.1.3 : IP of the host os (FreeBSD) 192.168.1.6 : IP of guest os (Windows 11 bhyve) //Marietto-window/h : is the path of the remote shared disk on the guest /mnt/windows-drive-h : is the folder where the remote shared disk should be mounted. ​ I tried with the current marietto /admin password and with the password configured on : ​ Control Panel / All Control Panel Items / Credential Manager / Windows Credentials / marietto ​ but they haven't been accepted. BTW I can access the Windows shared drive from FreeBSD if I disable the password on : ​ Control Panel / All Control Panel Items / Network and Sharing Center / Advanced sharing settings / Password protected sharing / Turn off password protected sharing ​ Someone suggested me that [mount\_smbfs(8)](https://www.freebsd.org/cg i/man.cgi?query=mount_smbfs&sektion=8&manpath=freebsd-release-ports) only supports SMBv1. But it has been always turned on,and anyway any password hasn't never been accepted. ​ # Get-WindowsOptionalFeature -Online -FeatureName SMB1Protocol FeatureName : SMB1Protocol DisplayName : SMB 1.0/CIFS File Sharing Support Description : Support for the SMB 1.0/CIFS file sharing protocol, and the Computer Browser protocol. RestartRequired : Possible State : Enabled CustomProperties : ServerComponent\Description : Support for the SMB 1.0/CIFS file sharing protocol, and the Computer Browser protocol. ServerComponent\DisplayName : SMB 1.0/CIFS File Sharing Support ServerComponent\Id : 487 ServerComponent\Type : Feature ServerComponent\UniqueName : FS-SMB1 ServerComponent\Deploys\Update\Name : SMB1Protocol ---------------------------------------------------------------------- loziomario · 2022-04-21 16:55 Solution : mount_smbfs -I 192.168.1.4 -U marietto //Marietto-window/h /mnt/windows-drive-h