Simple file sharing with Samba 4

From lxadm | Linux administration tips, tutorials, HOWTOs and articles
Jump to: navigation, search

A simple smb.conf for a read-only share in Samba 4 can look like below:

    workgroup = mygroup
    server string = Samba Server Version %v
    netbios name = SAMBA
    log file = /var/log/samba/log.%m
    max log size = 50
    guest ok = yes
    security = user
    map to guest = Bad Password

    path = /srv/samba
    read only = yes
    browseable = yes
    guest ok = yes
    guest only = yes

You can mount it on Linux with:

mount -t cifs // /mnt/samba

See also simple file sharing with Samba 3.