Hello Experts,
I am trying to migrate a Samba 3.6 server to Samba 4.19.
The OS of the old server is FreeBSD 10.3 and the new one is FreeBSD
14.1.
The client computers are Win 10 Pro.
Simple Samba configuration, no need for Active Directory, just a file
server with user authentication.
On the Windows computer I try to mount the shares from the new server
as \\[new server IP address].
The log file shows that the user can authenticate:
[2024/10/07 23:27:24.974539,  2] ../../source3/auth/auth.c:
338(auth_check_ntlm_password) check_ntlm_password:  authentication for
user [user] -> [user] -> [user] succeeded [2024/10/07 23:27:24.974885,
2] ../../source3/param/loadparm.c:2936(lp_do_section) Processing
section "[homes]" [2024/10/07 23:27:24.974935,
2] ../../source3/param/loadparm.c:2936(lp_do_section) Processing
section "[company]" [2024/10/07 23:27:24.975033,
2] ../../source3/param/loadparm.c:2936(lp_do_section) Processing
section "[office]"
However, the Windows computer pops up this error:
"\\[new server IP address]
A device attached to the system is not functioning"
...and no shares are mounted.
There is nothing in the Event viewer which seems to relate to this
error.
The same Windows computer can mount the shares from the old Samba 3.6
server with no errors.
smb4.conf:
[global]
        workgroup = MyDomain2024
        netbios aliases = samba4
        server string = MyDomain Samba
        interfaces = 10.10.10.0/24
        passdb backend = tdbsam:/usr/local/etc/smb4/passdb.tdb
        log level = 2
        log file = /var/log/samba4/log.%m
        name resolve order = wins host lmhosts bcast
        admin users = root
        hosts allow = 10.10.10.0/24, 10.10.11.0/24, 192.168.1.0/24,
10.10.100.0/24, 127.0.0.0/8 server min protocol = LANMAN1
        server max protocol = SMB3
        vfs objects = full_audit
        full_audit:prefix = %u|%I|%m|%S
        full_audit:success = mkdir rename unlink rmdir pwrite
        full_audit:failure = none
        full_audit:facility = local7
        full_audit:priority = NOTICE
I'd much appreciate your advice.
On Tue, 8 Oct 2024 00:20:44 -0400 samba3to4 via samba <samba at lists.samba.org> wrote:> Hello Experts, > > I am trying to migrate a Samba 3.6 server to Samba 4.19. > > [...] > > The log file shows that the user can authenticate: > > [2024/10/07 23:27:24.974539, 2] ../../source3/auth/auth.c: > 338(auth_check_ntlm_password) check_ntlm_password: authentication for > user [user] -> [user] -> [user] succeeded [...] > > However, the Windows computer pops up this error: > > "\\[new server IP address] > A device attached to the system is not functioning" > > ...and no shares are mounted. > [...] > > smb4.conf: > > [global] > workgroup = MyDomain2024 > netbios aliases = samba4 > server string = MyDomain Samba > interfaces = 10.10.10.0/24 > passdb backend = tdbsam:/usr/local/etc/smb4/passdb.tdb > log level = 2 > log file = /var/log/samba4/log.%m > name resolve order = wins host lmhosts bcast > admin users = root > hosts allow = 10.10.10.0/24, 10.10.11.0/24, 192.168.1.0/24, > 10.10.100.0/24, 127.0.0.0/8 server min protocol = LANMAN1 > server max protocol = SMB3 > vfs objects = full_audit > full_audit:prefix = %u|%I|%m|%S > full_audit:success = mkdir rename unlink rmdir pwrite > full_audit:failure = none > full_audit:facility = local7 > full_audit:priority = NOTICEReplying to my own post: After commenting out the 7 lines related to "full_audit" in smb4.conf, the user can mount shares from this server. I got the hint by adjusting to log level = 3 and looking at the log file /var/log/samba4/log.client which has entries like: [2024/10/08 02:59:23.945591, 0] ../../source3/modules/vfs_full_audit.c:749(smb_full_audit_connect) smb_full_audit_connect: Invalid success operations list. Failing connect [2024/10/08 02:59:23.945609, 1] ../../source3/smbd/smb2_service.c:630(make_connection_snum) make_connection_snum: SMB_VFS_CONNECT for service 'IPC$' at '/tmp' failed: No such file or directory [2024/10/08 02:59:23.945646, 3] ../../source3/smbd/smb2_server.c:4044(smbd_smb2_request_error_ex) smbd_smb2_request_error_ex: smbd_smb2_request_error_ex: idx[1] status[NT_STATUS_UNSUCCESSFUL] || at ../../source3/smbd/smb2_tcon.c:151 [2024/10/08 02:59:23.951771, 3] ../../source3/smbd/server_exit.c:230(exit_server_common) Server exit (NT_STATUS_CONNECTION_RESET)
Possibly Parallel Threads
- Can authenticate but cannot mount shares
- trouble transfering files via windows explorer but not via linux in command line
- Samba ADS-member-server: FQDNs in /etc/hosts
- Samba 4.2 AD member accesible by name but not by IP
- Samba 4.2 AD member accesible by name but not by IP