Previous Page | Next Page

  1. Agustin's Linux Manual
  2. Networks & Servers
  3. About the Author
  4. Table of Contents
  5. IP Addresses Networks and Subnets
  6. Network Classes
  7. IP Address in Decimal Notation
  8. Sub-netting
  9. Designing Subnets
  10. Allocating Subnets
  11. Defining Host Addresses
  12. Variable Length Subnet Mask
  13. Routing Protocols
  14. Classless Internet Domain Routing
  15. Servers - Chapter 9
  16. Apache Web Server
  17. Configuring Apache
  18. Uploading Web Pages
  19. Apache Overview
  20. MIMEMagic
  21. DNS Servers
  22. Welcome to Webmin
  23. Creating the Master Domain
  24. Adding the Reverse Zone
  25. Querying the DNS server
  26. Adding Virtual Domain to DNS Server
  27. Reverse Zone for Virtual Zone
  28. Binding IP Address for Virtual Domain
  29. Virtual Web Hosting
  30. DNS Security Options
  31. FTP Server
  32. Securing the FTP Server
  33. Email Server
  34. Postfix Configuration
  35. Dealing with Identical Users
  36. Configuring Email Clients
  37. Configuring Outlook
  38. Samba Server
  39. Configuring SAMBA Server
  40. The smb.conf File
  41. smb.conf Analysis
  42. Adding Users to Samba

Edit the script to suit your needs. The (#, ;) means comment remove them to make the line active. The above printed script is totally functional. You may follow it as a template to configure yours. Each section is explained as follows:

  1. [Global]

    Here is where you declare the group name, the NetBios name; how you want this to appear in network neighborhood -the default is set to host name.

    	workgroup = MDKGROUP
    	netbios name =  xxxx
    	server string = Samba Server %v
    
  2. [Printer]

    This section enables your printer for samba, required if you need to print to any printer connected to the Linux box.

    	Printcap name = lpstat
    	Load printers = yes
    	Printing = cups
    

    Check at the bottom of this script, there are other options for printers and by default they are enabled.

  3. [Logs]

    Enables logging for each machine that connects to samba server

    	Log file = /var/log/samba/log.%m
    	Max log size = 50
    
  4. [Host that are allowed to connect to this server]

    Enter single hosts here if you need it per host or a subnet mask.

    hosts allow  = 168.34.26.62
    
  5. Browser control and networking options:

    You may also use per interfaces, note that each interface represenst a complete network (subnet).

    Interfaces = 192.168.12.2 /24		192.168.13.2/24
    
  6. [Security]

    Uncomment this line to enable security mode (user level)

    security = user
    
  7. [Password]

    Enable the password restriction, forcing it to be number of characters required, as well as the username. Password must be encrypted.

    	password level = 8
    	username level = 8
    	encrypt password = yes
    	smb passwd file = /etc/samba/smbpasswd
    
  8. [Private home]
--------------------------------------------------------------------------------------
# A private directory, usable only by me. Note that I required 
# write access to the directory Documents.

;[fredsdir]

    [Agustin]
    comment = Agustin Private Files
    path = /home/agustin/Documents
    valid users = agustin
    public = no
    writable = yes
    printable = no

------------------------------------------------------------------------ 
[Public]
# A public directory, usable by all. Note that it has 
# write access to the directory public.

	[public]
 	path = /usr/somewhere/else/public
      public = yes
      only guest = yes
      writable = yes
      printable = no