Friday 5 December 2008

smb.conf

# 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 (perhaps too
# many!) 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 commentry 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 made any basic syntactic #errors.
#
#======================= Global Settings =====================================
[global]

workgroup = home
netbios name = mistervole
server string = mistervole

# Logging Options:
# this tells Samba to use a separate log file for each machine
# that connects

log file = /var/log/samba/log.%m

# Put a capping on the size of the log files (in Kb).
max log size = 50

hosts allow = 192.168.1.100 192.168.1.101 192.168.1.102 192.168.1.103 127.

# Security mode. Most people will want user level security. See
# security_level.txt for details.

security = user

# Password Level allows matching of _n_ characters of the password for
# all combinations of upper and lower case.

password level = 8

# You may wish to use password encryption. Please read
# ENCRYPTION.txt, Win95.txt and WinNT.txt in the Samba documentation.
# Do not enable this option unless you have read those documents
# Encrypted passwords are required for any use of samba in a Windows NT domain
# The smbpasswd file is only required by a server doing authentication,
# thus members of a domain do not need one.

encrypt passwords = yes
smb passwd file = /etc/samba/smbpasswd

# Browser Control and Networking Options:
# Most people will find that this option gives better performance.
# See speed.txt and the manual pages for details

socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192

# DNS Proxy - tells Samba whether or not to try to resolve NetBIOS
# names via DNS nslookups. The built-in default for versions 1.9.17 is
# yes, this has been changed in version 1.9.18 to no.

dns proxy = no

#============================ Share Definitions ==============================

[homes]
comment = Home Directories
browseable = no
writable = no

# This one is useful for people to share files
;[tmp]
; comment = Temporary file space
; path = /tmp
; read only = no
; public = yes

# A publicly accessible directory, but read only, except for people in
# the "staff" group
;[public]
; comment = Public Stuff
; path = /home/samba/public
; public = yes
; writable = no
; write list = @staff
# Audited directory through experimental VFS audit.so module:
# Uncomment next line.
; vfs object = /usr/lib/samba/vfs/audit.so

[photos]
path = /usr/share/data/photos
valid users = user1
public = no
writeable = yes
browseable = yes
available = yes
guest ok = no

[music]
path = /usr/share/data/music
valid users = user1
public = no
writeable = yes
browseable = yes
available = yes
guest ok = no

[video]
path = /usr/share/data/video
valid users = user1 user2
public = no
writeable = no
browseable = yes
available = yes
guest ok = no

-----------------------------------------------------------
# A private directory, usable only by Fred. Note that Fred requires
# write access to the directory.

;[fredsdir]

# [Agustin]
; comment = Fred's Service
# comment = Agustin Private Files
; path = /usr/somewhere/private
# path = /home/agustin/Documents
; valid users = fred
# valid users = agustin
; public = no
; writable = yes
# writable = yes
; printable = no