Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

yesterday I upgraded my fedora box to the latest version, and with that, I also upgraded samba, now using samba 4. I used to access those share from any computer at home without user/password, but now there seems to be something wrong with the configuration.

Here is my smb.conf

    workgroup = mygroup
    server string = Samba Server Version %v
    netbios name = HOME-WS
    log file = /var/log/samba/log.%m
    max log size = 50
    guest ok = yes
    security = share

    path = /mnt/Media
    read only = yes
    browseable = yes
    guest ok = yes
    guest only = yes

    path = /mnt/Music
    read only = yes
    browseable = yes
    guest ok = yes
    guest only = yes

Looking at the logs, there is a warning related to the security parameter

 WARNING: Ignoring invalid value 'share' for parameter 'security'

Does that means that samba 4 has finally removed 'share' as an option, is there any alternative to it, so that I can configure shares without passwords.

share|improve this question
See the "guest access" section at the bottom of this page. wiki.samba.org/index.php/Frequently_Asked_Questions –  JasonAzze Jan 19 '13 at 18:23

2 Answers 2

up vote 9 down vote accepted

If you follow the FAQ link from JasonAzze, you will see there is a "map to guest" line which is also required, so you need both of these lines:

security = user
map to guest = Bad Password

I had the same problem as the OP, and I have tested that this solution works on Fedora 18

share|improve this answer
Thanks, worked great! From smb.conf man page: "(map to guest) Bad User - Means user logins with an invalid password are rejected, unless the username does not exist, in which case it is treated as a guest login and mapped into the guest account." Combined with a "guest ok = yes" directive under a share will enable user/password-less browsing. –  joelpet Dec 12 '13 at 21:31

Change "security = share" to "security = user"

Reason: both share and server have been deprecated in Samba4.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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