I have the following share set up on Ubuntu 22 LTS:
[share]
path = /home/user/trunk
browsable = yes
writeable = yes
public = yes
I ran sudo smbpasswd -a user and set the password to be the same as the login password for Ubuntu. I then restarted the service with sudo service smbd restart.
I cannot connect to the share. When I try I get an "access denied" message in Windows 10, and it asks for my credentials again. This repeats in an endless loop.
The log file shows:
[2023/08/02 14:12:08.287659, 3] ../../source3/smbd/smb2_server.c:3954(smbd_smb2_request_error_ex)
smbd_smb2_request_error_ex: smbd_smb2_request_error_ex: idx[1] status[NT_STATUS_ACCESS_DENIED] || at ../../source3/smbd/smb2_tcon.c:151
[2023/08/02 14:12:08.307824, 1] ../../source3/smbd/smb2_tcon.c:242(smbd_smb2_tree_connect)
smbd_smb2_tree_connect: reject request to share [IPC$] as 'UBUNTU22\user' without encryption or signing. Disconnecting.
[2023/08/02 14:12:08.307887, 3] ../../source3/smbd/smb2_server.c:3954(smbd_smb2_request_error_ex)
smbd_smb2_request_error_ex: smbd_smb2_request_error_ex: idx[1] status[NT_STATUS_ACCESS_DENIED] || at ../../source3/smbd/smb2_tcon.c:151
[2023/08/02 14:12:13.991527, 1] ../../source3/smbd/smb2_tcon.c:242(smbd_smb2_tree_connect)
smbd_smb2_tree_connect: reject request to share [IPC$] as 'UBUNTU22\user' without encryption or signing. Disconnecting.
[2023/08/02 14:12:13.991679, 3] ../../source3/smbd/smb2_server.c:3954(smbd_smb2_request_error_ex)
smbd_smb2_request_error_ex: smbd_smb2_request_error_ex: idx[1] status[NT_STATUS_ACCESS_DENIED] || at ../../source3/smbd/smb2_tcon.c:151
Things I have tried:
- Setting the password to "password" and making sure it was typed correctly.
- Adding
ntlm auth = yesto smb.conf - Commenting out
map to guest = bad userin smb.conf. - Commenting out
usershare allow guests = yesin smb.conf. - Adding
security = userto smb.conf. - Removing samba entirely and re-installing it with apt.
- Trying to access the share directly via `\UBUNTU22\share'.
I also tried a fresh install of Ubuntu 22 and instead of editing smb.cong, I simply right clicked on a folder in my home directory and set up "local user sharing". That allows me to see the folder from Windows when browsing the machine, but I cannot open it as I get into the same credential loop as before. Interestingly, whatever that method does it does not appear to edit smb.conf because the shared folder does not appear in there.
smb.conf, issecurity = user(the default)? (3) Try thissestatuscommand but it was not installed, so I guess the answer is no.