Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #
- # 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
- #
- # Some options that are often worth tuning have been included as
- # commented-out examples in this file.
- # - When such options are commented with ";", the proposed setting
- # differs from the default Samba behaviour
- # - When commented with "#", the proposed setting is the default
- # behaviour of Samba but the option is considered important
- # enough to be mentioned here
- #
- # 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 =======================
- #Configuration générale
- [global]
- ## Browsing/Identification ###
- # Change this to the workgroup/NT-domain name your Samba server will part of
- workgroup = MSHOME
- server string = %h server
- #### Networking ####
- #nom du N.A.S.
- netbios name = NAS3
- dns proxy = no
- idmap config*:backend = tdb
- #### Debugging/Accounting ####
- # This tells Samba to use a separate log file for each machine
- # that connects
- log file = /var/log/samba/log.%m
- # Cap the size of the individual log files (in KiB).
- max log size = 1000
- syslog = 0
- # Do something sensible when Samba crashes: mail the admin a backtrace
- panic action = /usr/share/samba/panic-action %d
- ####### Authentication #######
- security = user
- #security = share
- encrypt passwords = true
- passdb backend = tdbsam
- obey pam restrictions = yes
- # This boolean parameter controls whether Samba attempts to sync the Unix
- # password with the SMB password when the encrypted SMB password in the
- # passdb is changed.
- unix password sync = yes
- # For Unix password sync to work on a Debian GNU/Linux system, the following
- # parameters must be set (thanks to Ian Kahan <<kahan@informatik.tu-muenchen.de> for
- # sending the correct chat script for the passwd program in Debian Sarge).
- passwd program = /usr/bin/passwd %u
- passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
- # This boolean controls whether PAM will be used for password changes
- # when requested by an SMB client instead of the program listed in
- # 'passwd program'. The default is 'no'.
- pam password change = yes
- # This option controls how unsuccessful authentication attempts are mapped
- # to anonymous connections
- map to guest = bad user
- usershare allow guests = yes
- #Et ici les différents partages
- [Public]
- comment = partage publique
- path = /media/DD1/NAS3/Public
- force security mode = 0777
- force directory mode = 0777
- force create mode = 0777
- force directory security mode = 0777
- valid users = @Chris
- create mode = 0777
- directory mode = 0777
- available = yes
- browsable = yes
- public = yes
- guest = yes
- share modes = yes
- # read only = no
- # locking = no
- # guest ok = pi
- browseable = yes
- # valid users = @users
- # force group = users
- # create mask = 0660
- # directory mask = 0771
- [Films]
- comment = dossier de test avec leurs droits à la con qui marchent jamais !!!
- path =/media/DD1/NAS3/Films
- read only = yes
- locking = no
- guest ok = yes
- # force user = pi
- [Perso]
- comment = zone personnelle
- browseable = yes
- path = /media/DD1/NAS3/Perso
- writable = yes
- username = Chris
- only user = yes
- create mode = 0777
- directory mask = 0777
Add Comment
Please, Sign In to add comment