diff options
Diffstat (limited to 'examples/redhat/smb.conf')
-rw-r--r-- | examples/redhat/smb.conf | 109 |
1 files changed, 109 insertions, 0 deletions
diff --git a/examples/redhat/smb.conf b/examples/redhat/smb.conf new file mode 100644 index 00000000000..e6b268cd005 --- /dev/null +++ b/examples/redhat/smb.conf @@ -0,0 +1,109 @@ + +; The global setting for a RedHat default install +; Make sure and restart the server after making changes to this file, ex: +; /etc/rc.d/init.d/smb stop +; /etc/rc.d/init.d/smb start + +[global] + workgroup = WORKGROUP + printing = bsd + printcap name = /etc/printcap + load printers = yes +; Uncomment this if you want a guest account +; guest account = pcguest + log file = /var/log/samba-log.%m + lock directory = /var/lock/samba + share modes = yes + +[homes] + comment = Home Directories + browseable = no + read only = no + create mode = 0750 + +[printers] + comment = All Printers + browseable = no + printable = yes + public = no + writable = no + create mode = 0700 + +;[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 = yes + writable = yes + printable = no + write list = @staff + +; Other examples. +; +; A private printer, usable only by fred. Spool data will be placed in fred's +; home directory. Note that fred must have write access to the spool directory, +; wherever it is. +;[fredsprn] +; comment = Fred's Printer +; valid users = fred +; path = /homes/fred +; printer = freds_printer +; public = no +; writable = no +; printable = yes +; +; A private directory, usable only by fred. Note that fred requires write +; access to the directory. +;[fredsdir] +; comment = Fred's Service +; path = /usr/somewhere/private +; valid users = fred +; public = no +; writable = yes +; printable = no +; +; a service which has a different directory for each machine that connects +; this allows you to tailor configurations to incoming machines. You could +; also use the %u option to tailor it by user name. +; The %m gets replaced with the machine name that is connecting. +;[pchome] +; comment = PC Directories +; path = /usr/pc/%m +; public = no +; writeable = yes +; +; +; A publicly accessible directory, read/write to all users. Note that all files +; created in the directory by users will be owned by the default user, so +; any user with access can delete any other user's files. Obviously this +; directory must be writable by the default user. Another user could of course +; be specified, in which case all files would be owned by that user instead. +;[public] +; path = /usr/somewhere/else/public +; public = yes +; only guest = yes +; writable = yes +; printable = no +; +; +; The following two entries demonstrate how to share a directory so that two +; users can place files there that will be owned by the specific users. In this +; setup, the directory should be writable by both users and should have the +; sticky bit set on it to prevent abuse. Obviously this could be extended to +; as many users as required. +;[myshare] +; comment = Mary's and Fred's stuff +; path = /usr/somewhere/shared +; valid users = mary fred +; public = no +; writable = yes +; printable = no +; create mask = 0765 + |