{"id":1871,"date":"2014-12-12T02:38:26","date_gmt":"2014-12-12T10:38:26","guid":{"rendered":"http:\/\/riguy.azurewebsites.net\/?page_id=1871"},"modified":"2018-05-31T23:57:03","modified_gmt":"2018-06-01T06:57:03","slug":"samba-7-1-working-config-file","status":"publish","type":"page","link":"https:\/\/riguy.com\/?page_id=1871","title":{"rendered":"Red Hat Linux 7.1 Samba Config File"},"content":{"rendered":"<h4><span style=\"font-family: Perpetua;\">From a Red Hat 7.1 Samba Server. Location: \/etc\/samba\/smb.conf.<\/span><\/h4>\n<h4><span style=\"font-family: Perpetua;\">The text in blue represents the parts from Webmin which were edited. Of course, anything in this file is fair game, to be edited within VI \/ VIM, or any editor.<\/span><\/h4>\n<h4><span style=\"font-family: Perpetua;\">A functioning Red Hat 8.0 <a title=\"Working Samba Config for Red Hat 8.0\" href=\"http:\/\/riguy.azurewebsites.net\/?page_id=1911\"><span style=\"text-decoration: underline;\"><span style=\"color: #0066cc;\">Samba Config file<\/span><\/span><\/a><\/span><\/h4>\n<hr size=\"3\" width=\"500\" \/>\n<p><span style=\"font-family: Perpetua;\"># This is the main Samba configuration file. You should read the<br \/>\n# smb.conf(5) manual page in order to understand the options listed<br \/>\n# here. Samba has a huge number of configurable options (perhaps too<br \/>\n# many!) most of which are not shown in this example<br \/>\n#<br \/>\n# Any line which starts with a ; (semi-colon) or a # (hash)<br \/>\n# is a comment and is ignored. In this example we will use a #<br \/>\n# for commentry and a ; for parts of the config file that you<br \/>\n# may wish to enable<br \/>\n#<br \/>\n# NOTE: Whenever you modify this file you should run the command &#8220;testparm&#8221;<br \/>\n# to check that you have not many any basic syntactic errors.<br \/>\n#<br \/>\n#======================= Global Settings =====================================<br \/>\n<span style=\"color: #0000cc;\">[global]<br \/>\nprinting = lprng<br \/>\ndns proxy = no<br \/>\nsecurity = user<br \/>\nssl ca certfile = \/usr\/share\/ssl\/certs\/ca-bundle.crt<br \/>\nencrypt passwords = yes<br \/>\nworkgroup = corporate<br \/>\nserver string = Albert&#8217;s Samba Server<br \/>\nsocket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192<br \/>\ncomment = Sambaness<br \/>\nlog file = \/var\/log\/samba\/%m.log<br \/>\nload printers = yes<br \/>\nprintcap name = \/etc\/printcap<br \/>\nmax log size = 0<br \/>\npreferred master = no <\/span><\/span><\/p>\n<p><span style=\"font-family: Perpetua;\"><br \/>\n[printers]<br \/>\ncomment = All Printers<br \/>\npath = \/var\/spool\/samba<br \/>\nbrowseable = no<br \/>\n# Set public = yes to allow user &#8216;guest account&#8217; to print<br \/>\nguest ok = no<br \/>\nprintable = yes<\/span><\/p>\n<p><span style=\"font-family: Perpetua;\"># This one is useful for people to share files<br \/>\n;[tmp]<br \/>\n; comment = Temporary file space<br \/>\n; path = \/tmp<br \/>\n; read only = no<br \/>\n; public = yes<\/span><\/p>\n<p><span style=\"font-family: Perpetua;\"># A publicly accessible directory, but read only, except for people in<br \/>\n# the &#8220;staff&#8221; group<br \/>\n;[public]<br \/>\n; comment = Public Stuff<br \/>\n; path = \/home\/samba<br \/>\n; public = yes<br \/>\n; writable = yes<br \/>\n; printable = no<br \/>\n; write list = @staff<\/span><\/p>\n<p><span style=\"font-family: Perpetua;\"># Other examples.<br \/>\n#<br \/>\n# A private printer, usable only by fred. Spool data will be placed in fred&#8217;s<br \/>\n# home directory. Note that fred must have write access to the spool directory,<br \/>\n# wherever it is.<br \/>\n;[fredsprn]<br \/>\n; comment = Fred&#8217;s Printer<br \/>\n; valid users = fred<br \/>\n; path = \/homes\/fred<br \/>\n; printer = freds_printer<br \/>\n; public = no<br \/>\n; printable = yes<\/span><\/p>\n<p><span style=\"font-family: Perpetua;\"># A private directory, usable only by fred. Note that fred requires write<br \/>\n# access to the directory.<br \/>\n;[fredsdir]<br \/>\n; comment = Fred&#8217;s Service<br \/>\n; path = \/usr\/somewhere\/private<br \/>\n; valid users = fred<br \/>\n; public = no<br \/>\n; writable = yes<br \/>\n; printable = no<\/span><\/p>\n<p><span style=\"font-family: Perpetua;\"># a service which has a different directory for each machine that connects<br \/>\n# this allows you to tailor configurations to incoming machines. You could<br \/>\n# also use the %u option to tailor it by user name.<br \/>\n# The %m gets replaced with the machine name that is connecting.<br \/>\n;[pchome]<br \/>\n; comment = PC Directories<br \/>\n; path = \/usr\/pc\/%m<br \/>\n; public = no<br \/>\n; writable = yes<\/span><\/p>\n<p><span style=\"font-family: Perpetua;\"># A publicly accessible directory, read\/write to all users. Note that all files<br \/>\n# created in the directory by users will be owned by the default user, so<br \/>\n# any user with access can delete any other user&#8217;s files. Obviously this<br \/>\n# directory must be writable by the default user. Another user could of course<br \/>\n# be specified, in which case all files would be owned by that user instead.<br \/>\n;[public]<br \/>\n; path = \/usr\/somewhere\/else\/public<br \/>\n; public = yes<br \/>\n; only guest = yes<br \/>\n; writable = yes<br \/>\n; printable = no<\/span><\/p>\n<p><span style=\"font-family: Perpetua;\"># The following two entries demonstrate how to share a directory so that two<br \/>\n# users can place files there that will be owned by the specific users. In this<br \/>\n# setup, the directory should be writable by both users and should have the<br \/>\n# sticky bit set on it to prevent abuse. Obviously this could be extended to<br \/>\n# as many users as required.<br \/>\n;[myshare]<br \/>\n; comment = Mary&#8217;s and Fred&#8217;s stuff<br \/>\n; path = \/usr\/somewhere\/shared<br \/>\n; valid users = mary fred<br \/>\n; public = no<br \/>\n; writable = yes<br \/>\n; printable = no<br \/>\n; create mask = 0765<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"color: #0000cc; font-family: Perpetua;\">[albert]<br \/>\npath = \/home\/albert<br \/>\nwritable = yes<br \/>\ncomment = Samba Madness<br \/>\nguest account = darnold<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>From a Red Hat 7.1 Samba Server. Location: \/etc\/samba\/smb.conf. The text in blue represents the parts from Webmin which were edited. Of course, anything in this file is fair game, to be edited within VI \/ VIM, or any editor. A functioning Red Hat 8.0 Samba Config file # This is the main Samba configuration &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/riguy.com\/?page_id=1871\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Red Hat Linux 7.1 Samba Config File&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":1911,"menu_order":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"_crdt_document":"","footnotes":""},"class_list":["post-1871","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/riguy.com\/index.php?rest_route=\/wp\/v2\/pages\/1871","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/riguy.com\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/riguy.com\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/riguy.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/riguy.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1871"}],"version-history":[{"count":9,"href":"https:\/\/riguy.com\/index.php?rest_route=\/wp\/v2\/pages\/1871\/revisions"}],"predecessor-version":[{"id":10341,"href":"https:\/\/riguy.com\/index.php?rest_route=\/wp\/v2\/pages\/1871\/revisions\/10341"}],"up":[{"embeddable":true,"href":"https:\/\/riguy.com\/index.php?rest_route=\/wp\/v2\/pages\/1911"}],"wp:attachment":[{"href":"https:\/\/riguy.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1871"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}