[Samba] samba member of workgroup

David C. Rankin drankinatty at suddenlinkmail.com
Mon Oct 13 19:18:32 GMT 2008


Fernando wrote:
> Hello,
> 
> I want to setup a samba server <http://www.linuxquestions.org/questions/#>as
> a member of a workgroup, for example MYWORKGROUP. I want to share a folder,
> for example /share.
> This share should be available to example.com domain clients only.
> 
> Can someone give me a smb.conf for that?
> 
> Would that do it?
> 
> [global]
> workgroup = MYWORKGROUP
> server string = Samba Server Version %v
> security = domain
> hosts allow = .example.com
> 
> [share]
> comment = Public Stuff
> path = /share
> public = no
> writable = no
> printable = no
> 
> Thank you.

Here is what I have used without any problems for the past 8 years.

[global]
        use sendfile = No
        workgroup = rb_law
        server string = Samba %v
        printcap name = cups
        load printers = yes
        printing = cups
        show add printer wizard = no
        disable spoolss = yes
        log file = /var/log/samba/log.%m
        max log size = 100
        time server = yes
        admin users = thomas
        smb ports = 139
        hosts allow = 192.168.7. 192.168.6. 192.168.8. 192.168.5. 127.
        domain logons = yes
        map to guest = bad user
        security = user
        encrypt passwords = yes
        smb passwd file = /etc/samba/smbpasswd
        socket options = TCP_NODELAY
        local master = yes
        os level = 69
        domain master = yes
        preferred master = yes
        name resolve order = wins lmhosts bcast
        wins support = yes
        dns proxy = no
        usershare allow guests = No
[homes]
        comment = Home Directories
        browseable = no
        writable = yes
[samba]
        comment = SambaShares - Pictures, Law
        path = /home/samba
        valid users = @shoreline, anna
        force group = shoreline
        admin users = thomas
        browseable = Yes
        writeable = Yes
        inherit permissions = yes


-- 
David C. Rankin, J.D., P.E.
Rankin Law Firm, PLLC
510 Ochiltree Street
Nacogdoches, Texas 75961
Telephone: (936) 715-9333
Facsimile: (936) 715-9339
www.rankinlawfirm.com


More information about the samba mailing list