Examples from Lefschetz

see if these things are set:

[global]
security = share

# comment out everything in the [homes], [netlogon], and [printers] sections

Then, set these things.

# This is just a template.  It doesn't actually serve anything or appear, but I use it to inherit from.
[template$]
    path = /nonexistent
    writable = yes
    locking = yes
    guest ok = yes 
    browseable = yes
    force user = darst       # Set to some username
    force group = darst
    create mask = 770           # The next four deal with permissions.  They DTRT for me.
    directory mask = 770
    force create mode = 660
    force directory mode = 660

# example for serving a directory:
[samba]
    copy = template$
    comment = 30 GB mirrored storage (/path/to/public)
    path = /path/to/public/

# examples for serving on a web server, where it is owned by another user

[websites]
    copy = template$
    comment = Darst websites (/path/to/websites/)
    path = /path/to/websites/
    create mask = 775
    directory mask = 775
    force user = www-data
    force group = www-data

DebianNotes/SambaConfig (last edited 2008-03-10 01:38:24 by localhost)