You are here

howto: setup samba public share

i wanted to set up a directory on my linux server where i and the rest of the family could get to the dvds and stuff on a directory called /media. since not everyone is using linux it had to be a windows share via samba

so this is my /etc/samba/smb.conf that i finally used:

cat /etc/samba/smb.conf |grep -vE "#|;|^$" 
[global]
        workgroup = linux
        server string = Samba Server Version %v
        log file = /var/log/samba/log.%m
        max log size = 50
        security = user
        cups options = raw
        map to guest = bad user
        guest account = nobody
[homes]
        comment = Home Directories
        browseable = no
        writable = yes
[printers]
        comment = All Printers
        path = /var/spool/samba
        browseable = no
        printable = yes
[media]
        comment = Media Share
        path = /media
        browseable = yes
        read only = yes
        guest ok = yes
        public = yes
        writable = no

i had to do after that was

service samba restart

and you can verify the settings used with

testparm -s