1

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

1 Answers1

1

Your config does not make sense, since "public and "protected" files are using the same user. Use "valid users" to enlist those that are allowed. These users must exist on your samba server:

pbedit -a -u guest

smbpasswd must be empty for "public" if you want to have free access.

For your protected files enlist those users, that may have access to those shares. Add those users via pbeditwith a password. But these instructions can be found here

kanehekili
  • 7,426