[Samba] file locking and sharing...

sam wun sam.wun at authtec.net
Sun Oct 31 05:21:07 GMT 2004


Hi,

I don't know how to enable file sharing and locking capability in Samba 
3.0.7.
I m using FreeBSD 5.3 RC. I will be very appreciate for your help.

Here is my conf file:

[global]
        workgroup = AUTHTEC
        netbios name = SAMBA30
        server string = Samba Server
        password server =
        passwd program = /usr/bin/passwd
        log file = /var/log/samba/log.%m
        max log size = 50
        name resolve order = lmhosts host wins bcast
        unix extensions = No
        socket options = IPTOS_LOWDELAY TCP_NODELAY
        printcap name = /etc/printcap
        mangling method = hash
        os level = 33
        domain master = Yes
        dns proxy = No
        wins support = Yes
        lock directory = /var/log/lock
        default service = data
        winbind separator =         winbind cache time = 15
        read only = No
        force unknown acl user = Yes
        hosts allow = 192.168.4., 192.168.9., 172.16.0., 127.
        printing = bsd
        print command = lpr -r -P%p %s
        lpq command = lpq -P%p
        lprm command = lprm -P%p %j
        case sensitive = No
        strict locking = No
        msdfs root = Yes
[netlogon]
        comment = Network Logon Service
        path = /var/lib/samba/netlogon
        read only = Yes
        guest ok = Yes
        browseable = No
        share modes = No

[homes]
        comment = Home Directories
        valid users = %S
        create mask = 0640
        directory mask = 0750
        inherit permissions = Yes
        inherit acls = Yes
        browseable = No

[public]
        path = /usr/local/samba-share
        valid users = sam, wendy, john, sandy
        inherit permissions = Yes
        inherit acls = Yes
        strict locking = Yes

The permision on the share directory is:
# ls -ld samba-share
drwxr-xr-x  2 root  wheel  512 Oct 31 12:49 samba-share/

Thanks
Sam




More information about the samba mailing list