All pastes #225250 Raw Edit

Someone

public text v1 · immutable
#225250 ·published 2006-10-27 20:52 UTC
rendered paste body
#
# Sample configuration file for the Samba suite for Debian GNU/Linux.
#
#
# This is the main Samba configuration file. You should read the
# smb.conf(5) manual page in order to understand the options listed
# here. Samba has a huge number of configurable options most of which 
# are not shown in this example
#
# Any line which starts with a ; (semi-colon) or a # (hash) 
# is a comment and is ignored. In this example we will use a #
# for commentary and a ; for parts of the config file that you
# may wish to enable
#
# NOTE: Whenever you modify this file you should run the command
# "testparm" to check that you have not many any basic syntactic 
# errors. 
#

#======================= Global Settings =======================

[global]
	dns proxy = no
	log file = /var/log/samba/log.%m
	netbios name = Godzilla
	server string = Godzilla
	invalid users = root
	socket options = TCP_NODELAY
	workgroup = Blueprint
	os level = 20
	encrypt passwords = true
	security = share
	syslog = 0
	passwd program = /usr/bin/passwd %u
	max log size = 1000
	auto services = homes

[homes]
	create mask = 0700
	comment = Home Directories
	directory mask = 0700
	writeable = yes
	browseable = no
	valid users = kmaynard

[printers]
   comment = All Printers
   browseable = no
   path = /tmp
   printable = yes
   public = no
   writable = no
   create mode = 0700

# Windows clients look for this share name as a source of downloadable
# printer drivers
[print$]
   comment = Printer Drivers
   path = /var/lib/samba/printers
   browseable = yes
   read only = yes
   guest ok = no
# Uncomment to allow remote administration of Windows print drivers.
# Replace 'ntadmin' with the name of the group your admin users are
# members of.
;   write list = root, @ntadmin

# A sample share for sharing your CD-ROM with others.
;[cdrom]
;   comment = Samba server's CD-ROM
;   writable = no
;   locking = no
;   path = /cdrom
;   public = yes

# The next two parameters show how to auto-mount a CD-ROM when the
#	cdrom share is accesed. For this to work /etc/fstab must contain
#	an entry like this:
#
#       /dev/scd0   /cdrom  iso9660 defaults,noauto,ro,user   0 0
#
# The CD-ROM gets unmounted automatically after the connection to the
#
# If you don't want to use auto-mounting/unmounting make sure the CD
#	is mounted on /cdrom
#
;   preexec = /bin/mount /cdrom
;   postexec = /bin/umount /cdrom


[files]
	writeable = yes
	public = yes
	guest only = yes
	path = /home/files

[programs]
	writeable = yes
	public = yes
	guest only = yes
	path = /home/programs

[ftp]
        force create mode = 077
        copy = files
        comment = ftp dir on Godzilla
        root preexec = chown -R nobody:users /home/ftp && chmod -R 666 /home/ftp
        valid users = nobody,@nobody
        path = /home/ftp
        force directory mode = 077