I have Ubuntu 20.04.4 LTS. I installed samba and made a shared directory. When I try to access the shared folder from windows 10 pro it writes "Windows cannot access \ip_address\share" with error 0x80004005. I tried accessing the folder with a virtual machine (on the same computer as windows) with a Linux OS and it worked, so it's a problem with windows. I tried enabling SMB 1 and disabling it from windows features but didn't work. Searched online but didn't find any solution that worked. This is my smb config:
[global]
server role = standalone server
map to guest = bad user
usershare allow guests = yes
[share]
comment = Open Linux Share
path = /home/share
read only = no
guest ok = yes
force create mode = 0755
force user = amine
force group = amine