Hello,

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=302378&msg=49&att=0 asks
for an smb.conf, here it comes (see attachment).

Valentijn
-- 
-- Holland Open Software Congres, 30/31 mei 2005: http://hollandopen.nl --
http://www.openoffice.nl/   Open Office - Linux Office Solutions
Valentijn Sessink  [EMAIL PROTECTED]
#
#Configuration file for the Samba suite for Debian GNU/Linux.
#
# $Id: smb.conf,v 1.6 2002/08/25 20:14:43 vorlon Exp $
#
# 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. 
#

# samba config voor Adamscheschool
# samba is PDC voor alle windowclients m.u.v. de laptops:
# lapton(w2k) heeft vaste mappings
# lapgwen(OsX) krijgt shares via NFS
# Imacs(Linux) kgrijgen home directories via NFS/NIS
# chris everts 2002 - [EMAIL PROTECTED]
# daniel von asmuth 2003 - [EMAIL PROTECTED]
#
#======================= Global Settings =======================

[global]
# do something sensible when Samba crashes: mail the admin a backtrace
   panic action = /usr/share/samba/panic-action %d

socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192

log file = /var/log/samba/log.samba-2005
log level = 0
##%m
max log size = 1000
syslog only = no
syslog = 0

wins support = yes
dns proxy = no
name resolve order = wins  host bcast  lmhosts


time server = yes
lanman auth = yes

preserve case = yes
short preserve case = yes

unix password sync = true

passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\sUNIX\spassword:* %n\n *Retype\snew\sUNIX\spassword:* 
%n\n .

message command = /bin/sh -c '/usr/bin/linpopup "%f" "%m" %s; rm %s' &

obey pam restrictions = yes

#winbind uid = 10000-20000
#winbind gid = 10000-20000
#template shell = /bin/bash

add user script = /usr/sbin/useradd -d /export/%u -g 1029 -s /bin/false -M %u

#interfaces = 127.0.0.1 172.25.1.120
#bind interfaces only = yes

# Browsing

local master = yes
os level = 99
domain master = yes
preferred master = yes

workgroup = amsterdamsche
netbios name = linux    
server string = file server (Samba)

guest account = nobody
#invalid users = root

domain logons = yes
security = user
encrypt passwords = true
hide dot files = yes


logon path = \\%L\profiles\%U
logon drive = M:
logon home = \\%L\%U
admin users = @beheer root
domain admin group = @beheer
logon script = logon.bat

#problemen met oplockbreacks:
##oplock break wait time = 80
#oplocks uitgezet, zie [openoffice #10901] en problemen met roaming profiles
# in [openoffice #10320]

oplocks = no

# not touching yet -cev
#
#
# If you want to automatically load your printer list rather
# than setting them up individually then you'll need this
;   load printers = yes

# You may wish to override the location of the printcap file
;   printcap name = /etc/printcap

# 'printing = cups' works nicely
;   printing = bsd

  
# Using the following line enables you to customise your configuration
# on a per machine basis. The %m gets replaced with the netbios name
# of the machine that is connecting
;   include = /home/samba/etc/smb.conf.%m
         

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

[homes]
browseable = no
hide dot files = yes
writable = yes
#create mask = 0770
#directory mask = 0770
#valid users = %S

[netlogon]
    comment = Network Logon Service
    path = /export/SAMBA/netlogon
    guest ok = yes
    writable = no   
    write list = @beheer
    browseable = no    

[profiles]
    comment = profielen    
    path    = /export/SAMBA/profiles
    read only = no
    create mask = 0600
    directory mask = 0700
browseable = no    
    
    
#[printers]
#   comment = All Printers
#  browseable = no
# path = /tmp
#   printable = yes
#   public = no
#   writable = no
#   create mode = 0700


[volgsysteem]
comment = volgsysteem
path = /home/ER/volgsysteem
browseable = no
writeable = yes
force group = volgsysteem
create mask = 0770
directory mask = 0770
valid users = @volgsysteem
invalid users = @leerling
oplocks = False
level2oplocks = False


[absentie]
comment = absentie - presentie
path = /home/ER/absentie
browseable = no
writeable = yes
create mask = 0660
directory mask = 0770
force group = absentie
valid users = @absentie, @leraar
invalid users = @leerling


[directie]
comment = directie
path = /home/ER/directie
browseable = no
writeable = yes
create mask = 0770
directory mask  = 0770
valid users = @directie


[management]
comment = management
path = /home/ER/management
browseable = no
writeable = yes
force group = management
create mode = 0770
directory mode = 0770
valid users = @management

[Software]
comment = software
path = /export/SAMBA/software
browseable = no
writeable = yes
guest ok = yes

[leerlingen]
comment = t.b.v. leerlingen
path = /export/leerlingen
browseable = yes
force group = leerling
valid users = @management, @leraar, @leerling, @beheer
writeable = yes
create mode = 0664
directory mode = 0755

[beoordelingen]
comment = t.b.v. docenten 
path = /export/beoordelingen
browseable = yes
valid users = @management, @leraar, @beheer
writeable = yes
force group = leraar
create mode = 0640
force directory mode = 01770

[docenten]
comment = t.b.v. docenten 
path = /export/docenten
browseable = yes
force group = management
valid users = @management, @leraar, @beheer
writeable = yes
create mode = 0640
directory mode = 0750

[pics]
comment = pics
path = /export/pics
browseable = no
writeable = yes
create mode = 0644
directory mode = 0755

[cdrom]
   comment = Samba server's CD-ROM
   browseable = no    
   writable = no
   locking = no
   path = /cdrom
   public = yes
 
   preexec = /bin/mount /cdrom
   postexec = /bin/umount /cdrom


[verwijderd1]
comment = BAK directory
path = /export/BAK
browseable = no
writeable = no
force group = directie
create mode = 0770
directory mode = 0770
valid users = @directie

[verwijderd2]
comment = BAK directory
path = /export/VERWIJDERD
browseable = no
writeable = no
force group = directie
create mode = 0770
directory mode = 0770
valid users = @directie

Attachment: signature.asc
Description: Digital signature

Reply via email to