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 =======================
- [global]
- workgroup = WORKGROUP
- wins support = no
- dns proxy = yes
- log file = /var/log/samba/log.%m
- max log size = 1000
- syslog = 0
- panic action = /usr/share/samba/panic-action %d
- server role = standalone server
- passdb backend = tdbsam
- obey pam restrictions = yes
- unix password sync = yes
- passwd program = /usr/bin/passwd %u
- passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
- pam password change = yes
- map to guest = bad user
- usershare allow guests = yes
- [homes]
- comment = Home Directories
- browseable = no
- # By default, the home directories are exported read-only. Change the
- # next parameter to 'no' if you want to be able to write to them.
- read only = no
- # File creation mask is set to 0700 for security reasons. If you want to
- # create files with group=rw permissions, set next parameter to 0775.
- create mask = 0700
- # Directory creation mask is set to 0700 for security reasons. If you want to
- # create dirs. with group=rw permissions, set next parameter to 0775.
- directory mask = 0700
- # By default, \\server\username shares can be connected to by anyone
- # with access to the samba server.
- # The following parameter makes sure that only "username" can connect
- # to \\server\username
- # This might need tweaking when using external authentication schemes
- valid users = %S
- # Un-comment the following and create the netlogon directory for Domain Logons
- # (you need to configure Samba to act as a domain controller too.)
- ;[netlogon]
- ; comment = Network Logon Service
- ; path = /home/samba/netlogon
- ; guest ok = yes
- ; read only = yes
- # Un-comment the following and create the profiles directory to store
- # users profiles (see the "logon path" option above)
- # (you need to configure Samba to act as a domain controller too.)
- # The path below should be writable by all users so that their
- # profile directory may be created the first time they log on
- ;[profiles]
- ; comment = Users profiles
- ; path = /home/samba/profiles
- ; guest ok = no
- ; browseable = no
- ; create mask = 0600
- ; directory mask = 0700
- [printers]
- comment = All Printers
- browseable = no
- path = /var/spool/samba
- printable = yes
- guest ok = no
- read only = yes
- create mask = 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.
- # You may need to replace 'lpadmin' with the name of the group your
- # admin users are members of.
- # Please note that you also need to set appropriate Unix permissions
- # to the drivers directory for these users to have write rights in it
- ; write list = root, @lpadmin
- [Backups]
- comment=Raspberry Pine Share
- path=/media/debian/ExternalHDD/Backups
- browseable=Yes
- writeable=Yes
- only guest=no
- create mask=0777
- directory mask=0777
- public=no
- [Shared]
- comment=Raspberry Pine Share
- path=/media/debian/ExternalHDD/Shared
- browseable=Yes
- writeable=Yes
- only guest=no
- create mask=0777
- directory mask=0777
- public=no
- [Downloads]
- comment=Raspberry Pine Share
- path=/media/debian/ExternalHDD/Downloads
- browseable=Yes
- writeable=Yes
- only guest=no
- create mask=0777
- directory mask=0777
- public=no
Advertisement
Add Comment
Please, Sign In to add comment