Zum Inhalt springen

Samba Server konfigurieren: Unterschied zwischen den Versionen

Aus LHlab Wiki
Keine Bearbeitungszusammenfassung
Keine Bearbeitungszusammenfassung
Zeile 5: Zeile 5:
[global]
[global]
         workgroup = LAUB
         workgroup = LAUB
         netbios name = laub-iiab
         netbios name = laub-samba
         server string = Laub-IIAB Server
         server string = Laub-Samba Server
         security = share
         security = share
         log file = /var/log/samba/log.%m
         log file = /var/log/samba/log.%m
         log level = 0
         log level = 0
         #syslog only = yes # schickt die Meldungen nur an den Syslog nicht ins eigene Logfile
         # schickt die Meldungen nur an den Syslog nicht ins eigene Logfile
        #syslog only = yes
 
         wins support = true
         wins support = true
         guest account = administrator
         guest account = administrator
         interfaces = 192.168.50.10/255.255.255.0
         interfaces = 192.168.1.1/255.255.255.0
         bind interfaces only = Yes
         bind interfaces only = Yes
         hosts allow = 192.168.50. 192.168.52. 192.168.160.200 192.168.70. 127.0.0.1
         hosts allow = 192.168.1. 127.0.0.1
         domain master = yes
         domain master = yes
         preferred master = yes
         preferred master = yes
Zeile 22: Zeile 24:
         dns proxy = yes
         dns proxy = yes


#       character set = ISO8859-15
        #character set = ISO8859-15
#       client code page = 850
        #client code page = 850


         #tuning
         #Tuning Parameter ???
#       timeout = 30
        #timeout = 30
#       read raw = yes                    # Default
        #read raw = yes                    # Default
#       write raw = yes                    # Default
        #write raw = yes                    # Default
#       oplocks = yes                      # Default
        #oplocks = yes                      # Default
#       dead time = 15                    # Default is 0
        #dead time = 15                    # Default is 0
#       getwd cache = yes
        #getwd cache = yes
         #obey pam restrictions = yes
         #obey pam restrictions = yes
         #winbind trusted domains only = yes
         #winbind trusted domains only = yes
Zeile 38: Zeile 40:
         #passwd program = /usr/bin/passwd %u
         #passwd program = /usr/bin/passwd %u
         #passdb backend = tdbsam guest
         #passdb backend = tdbsam guest
        #wins server = 0.0.0.0
         #encrypt passwords = true
         #encrypt passwords = true
        #password server = 0.0.0.0
         #domain logons = yes
         #domain logons = yes
         #realm = laub.loc
         #realm = laub.loc
Zeile 49: Zeile 49:
         socket options = TCP_NODELAY SO_SNDBUF=65535 SO_RCVBUF=65535
         socket options = TCP_NODELAY SO_SNDBUF=65535 SO_RCVBUF=65535
         #socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192 IPTOS_LOWDELAY
         #socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192 IPTOS_LOWDELAY
         #Drucker deaktivieren:
         #Drucker deaktivieren:
         printcap name = /dev/null
         printcap name = /dev/null
Zeile 66: Zeile 67:
         inherit acls = yes
         inherit acls = yes


[DigiCam]
[Bilder]
         writeable = yes
         writeable = yes
         path = /srv/samba/DigiCam
         path = /srv/samba/Bilder
         public = yes
         public = yes
         create mask = 0754
         create mask = 0754

Version vom 12. Mai 2010, 08:55 Uhr

Hier einfach mal meine Best Practice Samba Konfiguration und ein paar Worte dazu
/etc/samba/smb.conf

# Global parameters
[global]
        workgroup = LAUB
        netbios name = laub-samba
        server string = Laub-Samba Server
        security = share
        log file = /var/log/samba/log.%m
        log level = 0
        # schickt die Meldungen nur an den Syslog nicht ins eigene Logfile
        #syslog only = yes 

        wins support = true
        guest account = administrator
        interfaces = 192.168.1.1/255.255.255.0
        bind interfaces only = Yes
        hosts allow = 192.168.1. 127.0.0.1
        domain master = yes
        preferred master = yes
        os level = 254
        smb ports = 139
        dns proxy = yes

        #character set = ISO8859-15
        #client code page = 850

        #Tuning Parameter ???
        #timeout = 30
        #read raw = yes                     # Default
        #write raw = yes                    # Default
        #oplocks = yes                      # Default
        #dead time = 15                     # Default is 0
        #getwd cache = yes
        #obey pam restrictions = yes
        #winbind trusted domains only = yes
        #os level = 20
        #ldap ssl = no
        #passwd program = /usr/bin/passwd %u
        #passdb backend = tdbsam guest
        #encrypt passwords = true
        #domain logons = yes
        #realm = laub.loc

        # Macht die Samba shares schneller beim lesen und schreiben
        read size = 65535
        max xmit = 65535
        socket options = TCP_NODELAY SO_SNDBUF=65535 SO_RCVBUF=65535
        #socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192 IPTOS_LOWDELAY

        #Drucker deaktivieren:
        printcap name = /dev/null
        load printers = no
        printing = bsd
        show add printer wizard = no
        disable spoolss = yes


[daten$]
        writeable = yes
        path = /srv/samba
        public = yes
        create mask = 0754
        directory mask = 0755
        browseable = no
        inherit acls = yes

[Bilder]
        writeable = yes
        path = /srv/samba/Bilder
        public = yes
        create mask = 0754
        directory mask = 0755
        browseable = no