1

I want to access linux (fedora 25 in virtual box), there is two issues:

  1. Configure with anonymous access, but windows still asks account and password to access linux by samba.

  2. Configure with account access, windows prompts message that the account or password is not correct, but actually they are correct by verifying with smbclient.

Configures with anonymous access.

[global]
        workgroup = WORKGROUP
        security = user
        map to guest = Bad User
        guest account = guest 
        passdb backend = tdbsam
        cups options = raw
        interfaces = enp0s3
        bind interfaces only = true

[myshare]
        comment = fedora samba
        path = /home/myshare/
        writable = yes
        browsable = yes
        read only = no
        public = yes
        available = yes
        guest ok = yes
        valid users = root yangli guest
        read list = root yangli guest 
        write list = root yangli guest
        create mode = 0755
        directory mode = 0755
        allow hosts = 192.168.56.1/24
        only guest = yes

What is the reason?

  • Pretty sure valid users = root yangli guest is the issue. Remove (or comment it out) and restart start Samba. Not sure what read list is, but I would remove that while testing as well. – Tigger Jul 17 '17 at 6:19
  • Have you created the users ? – Soheyl Mar 16 at 20:04
0

I have a system that allows WinXp and Win7 to access samba as guests. A few entries that may help are:

[global]

security = user

null passwords = yes

map to guest = Bad Password

guest ok = Yes

I am using wide open shares on a trusted lan.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.