We have samba 4.10.6-1 running on AIX 7.2 TL05sp4 in our environment with ADS . No changes were done at AIX servers end in recent times but few of the end users are facing a unusual issue of copying files to samba shares on all aix lpars. When end user tries to copy and paste a file from laptop to samba share, For some reason it assumes the files already exists on the Samba share (which they do not) because we are asked if we want to overwrite the existing files , if we accept; the file is written by the same name but they are empty and then an access denied message pops up.
But when we try to first copy(scp) the files to any other aix lpar /iSeries lpar on the network and then to the Samba share on destination AIX it works . We also tried to do an ftp/winscp to the Samba share from the laptop and it worked.
below are the logs section which stand out while an enduser is trying to copy a file to the samba share which is having full permission (0777)at AIX server end.
[2024/11/19 10:37:50.056844, 2] ../../source3/auth/token_util.c:732(finalize_local_nt_token)
WARNING: Failed to create BUILTIN\Users group! Can Winbind allocate gids?
[2024/11/19 10:37:50.057284, 3] ../../source3/groupdb/mapping.c:835(pdb_create_builtin_alias)
pdb_create_builtin_alias: Could not get a gid out of winbind
[2024/11/19 10:37:50.061763, 3] ../../source3/smbd/password.c:140(register_homes_share)
Adding homes service for user 'stripath' using home directory: '/home/stripath'
[2024/11/19 10:37:50.351668, 3] ../../lib/util/access.c:365(allow_access)
Allowed connection from 10.92.6.89 (10.92.6.89)
[2024/11/19 10:37:50.351791, 3] ../../source3/smbd/service.c:605(make_connection_snum)
make_connection_snum: Connect path is '/f50work/SDI_interface' for service [sorter]
[2024/11/19 10:37:50.351902, 3] ../../source3/smbd/vfs.c:114(vfs_init_default)
Initialising default vfs hooks
api_rpcTNP: rpc command: SRVSVC_NETSHAREGETINFO
[2024/11/19 10:37:53.025934, 3] ../../source3/smbd/smb2_server.c:3213(smbd_smb2_request_error_ex)
smbd_smb2_request_error_ex: smbd_smb2_request_error_ex: idx[1] status[NT_STATUS_INVALID_INFO_CLASS] || at ../../source3/smbd/smb2_query_directory.c:159
[2024/11/19 10:37:53.026071, 3] ../../source3/smbd/smb2_server.c:3213(smbd_smb2_request_error_ex)
smbd_smb2_request_error_ex: smbd_smb2_request_error_ex: idx[5] status[NT_STATUS_INVALID_INFO_CLASS] || at ../../source3/smbd/smb2_query_directory.c:159
[2024/11/19 10:37:53.304741, 3] ../../source3/smbd/dir.c:662(dptr_create)
creating new dirptr 0 for path ., expect_close = 0
[2024/11/19 10:37:53.304806, 3] ../../source3/smbd/dir.c:1227(smbd_dirptr_get_entry)
smbd_dirptr_get_entry mask=[SDI_outbound] found SDI_outbound fname=SDI_outbound (SDI_outbound)
[2024/11/19 10:37:56.889392, 3] ../../source3/smbd/smb2_server.c:3213(smbd_smb2_request_error_ex)
smbd_smb2_request_error_ex: smbd_smb2_request_error_ex: idx[1] status[NT_STATUS_CANCELLED] || at ../../source3/smbd/smb2_notify.c:126
[2024/11/19 10:37:56.907452, 3] ../../source3/smbd/dir.c:662(dptr_create)
creating new dirptr 0 for path SDI_outbound, expect_close = 0
Incase anyone faced a similar issue ,please suggest if there is any resolution/workaround for it.
------------------------------
Shubhangi Tripathi
------------------------------
#AIXOpenSource